Docker – Error response from daemon when starting a docker container

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?

Best Answer

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