Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error response from daemon when starting a docker container

Tags:

docker

When I type docker start projects I get this error:

Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\"/bin/bash”\\": stat /bin/bash”: no such file or directory\"\n" Error: failed to start containers: projects

What should I do so I can start my docker containers?

like image 281
CoderMan Avatar asked Jan 01 '17 23:01

CoderMan


1 Answers

There are two possible errors

  1. The file or directory you are mapping is invalid
  2. The base image you are using do not have /bin/bash

and try to start a new container instead of old one from docker run projects

like image 52
Manoj Sahu Avatar answered Sep 30 '22 17:09

Manoj Sahu