I am trying to start a Debian image with the
/sbin/init process for ansible role testing via molecule.
Yes, I am aware, that one should not start
/sbin/init in a container unless you really have a use case for doing so. With molecule I can test my ansible roles in a docker container. As such I need
When I execute
docker run -it --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro debian:9 /sbin/init docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: "/sbin/init": stat /sbin/init: no such file or directory": unknown.
However, with debian:8 it works just fine.
docker run -it --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro debian:8 /sbin/init
works like a charm.
Has Debian switched to a new boot process? What changed?