Creating a container using:
- ubuntu:19.10 https://hub.docker.com/_/ubuntu
- s6-overlay https://github.com/just-containers/s6-overlay
Error:
ERROR: Service 'dev' failed to build: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory": unknown
See in s6-overlay
: Known issues and workarounds: /bin
and /sbin
are symlinks
Change Dockerfile to untar s6-overlay to:
RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C / --exclude="./bin" && \
tar xzf /tmp/s6-overlay-amd64.tar.gz -C /usr ./bin