14

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
Thế Huynh Phạm
  • 551
  • 1
  • 4
  • 12

2 Answers2

19

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
Xaqron
  • 29,931
  • 42
  • 140
  • 205
14

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"...

Thế Huynh Phạm
  • 551
  • 1
  • 4
  • 12