Why does `exec init` work in podman but not buildah with the same options?
2
votes
1
answer
381
views
How are these two commands different? Both of them launch a shell as pid 1 and make the same mounts and volumes,
buildah run --tty --mount type=tmpfs,destination=/run -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
$(buildah from centos:7) /bin/sh -c 'exec /sbin/init'
podman run -ti --mount type=tmpfs,destination=/run -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
centos:7 /bin/sh -c 'exec /sbin/init'
Only the podman one works though. What am I misunderstanding here?
Asked by Evan Carroll
(34663 rep)
Nov 18, 2020, 07:55 PM
Last activity: Nov 18, 2020, 08:40 PM
Last activity: Nov 18, 2020, 08:40 PM