Use a lighter PID 1 than $SHELL
When used as PID 1, /bin/sh takes 3248 kB compared to the 4136 kB taken by /bin/bash. It's not a lot, but is memory that can be saved for free. As a nice side-effect, this unbreaks 'create' with podman-0.9.1 because 'podman create ...' doesn't work without a command. https://github.com/containers/libpod/issues/1452
This commit is contained in:
parent
d7219ba512
commit
fd697274a3
|
@ -97,7 +97,8 @@ create()
|
||||||
--tty \
|
--tty \
|
||||||
--volume $HOME:$HOME \
|
--volume $HOME:$HOME \
|
||||||
--volume $XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR \
|
--volume $XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR \
|
||||||
$toolbox_image >/dev/null 2>&42; then
|
$toolbox_image \
|
||||||
|
/bin/sh >/dev/null 2>&42; then
|
||||||
echo "$0: failed to create container $toolbox_container"
|
echo "$0: failed to create container $toolbox_container"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue