diff --git a/.release/docker/docker-entrypoint.sh b/.release/docker/docker-entrypoint.sh index 81214cb9b..3b72da25b 100755 --- a/.release/docker/docker-entrypoint.sh +++ b/.release/docker/docker-entrypoint.sh @@ -91,7 +91,7 @@ if [ "$1" = 'vault' ]; then # In the case vault has been started in a container without IPC_LOCK privileges if ! vault -version 1>/dev/null 2>/dev/null; then - >&2 echo "Couldn't start vault with IPC_LOCK. Disabling IPC_LOCK, please use --privileged or --cap-add IPC_LOCK" + >&2 echo "Couldn't start vault with IPC_LOCK. Disabling IPC_LOCK, please use --cap-add IPC_LOCK" setcap cap_ipc_lock=-ep $(readlink -f $(which vault)) fi fi diff --git a/scripts/docker/docker-entrypoint.sh b/scripts/docker/docker-entrypoint.sh index 81214cb9b..3b72da25b 100755 --- a/scripts/docker/docker-entrypoint.sh +++ b/scripts/docker/docker-entrypoint.sh @@ -91,7 +91,7 @@ if [ "$1" = 'vault' ]; then # In the case vault has been started in a container without IPC_LOCK privileges if ! vault -version 1>/dev/null 2>/dev/null; then - >&2 echo "Couldn't start vault with IPC_LOCK. Disabling IPC_LOCK, please use --privileged or --cap-add IPC_LOCK" + >&2 echo "Couldn't start vault with IPC_LOCK. Disabling IPC_LOCK, please use --cap-add IPC_LOCK" setcap cap_ipc_lock=-ep $(readlink -f $(which vault)) fi fi