We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35500dc commit 7009fb0Copy full SHA for 7009fb0
docker/runtime-entrypoint.sh
@@ -21,4 +21,5 @@ if [ "$#" -eq 0 ]; then
21
fi
22
23
# Drop root privileges and run runtime in foreground as PID 1 child under tini.
24
-exec su -s /bin/sh aegis -c 'exec "$@"' -- "$@"
+# With `sh -c`, first arg after `--` becomes $0, so exec must include $0.
25
+exec su -s /bin/sh aegis -c 'exec "$0" "$@"' -- "$@"
0 commit comments