Skip to content

Instantly share code, notes, and snippets.

@AlecTaylor
Created September 3, 2018 06:41
Show Gist options
  • Save AlecTaylor/57051d90e94c7068c9c5a496c78c2a20 to your computer and use it in GitHub Desktop.
Save AlecTaylor/57051d90e94c7068c9c5a496c78c2a20 to your computer and use it in GitHub Desktop.
FROM scratch
RUN echo foo
$ docker build --compress --squash --force-rm --tag scratch1 .
# Sending build context to Docker daemon 147B
# Step 1/2 : FROM scratch
# --->
# Step 2/2 : RUN echo foo
# ---> Running in 3aa8df3d20b4
# Removing intermediate container 3aa8df3d20b4
# OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory": unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment