16

Getting following error while run docker build...

OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown
1
  • 1
    What was the command? Commented Apr 22, 2020 at 5:15

2 Answers 2

21

Your container doesn't have bash installed but probably it has sh so run the container with (replace /bin/bash with /bin/sh):

docker exec -it username/imagename /bin/sh
Sign up to request clarification or add additional context in comments.

Comments

17

This is because the container i'm trying to access doesn't have the /bin/bash executable.

Replace RUN ["/bin/bash"... by RUN ["/bin/sh"...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.