Skip to content

Instantly share code, notes, and snippets.

@aizatto
Created April 12, 2020 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aizatto/825557f924186014d7fd820d01326013 to your computer and use it in GitHub Desktop.
Save aizatto/825557f924186014d7fd820d01326013 to your computer and use it in GitHub Desktop.
Docker build errors with ubuntu:19.10 and s6-overlay

Creating a container using:

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment