Docker Community Forums

Share and learn in the Docker community.

Error response from daemon: Container command 'sh' could not be invoked

docker

(Jef Statham) #1

After moving the docker image directory to a new disk I cannot run any images. I can still pull images but I get the following error trying to run sh from the images.

Followed the steps to use options How do I change the Docker image installation directory?
Then tried the symlink without success. I’ve removed all my containers and image and pull the fresh but I still cannot run any images.


(Dvohra) #2

What are the settings for ENTRYPOINT and CMD instructions in Dockerfile? Also, is docker-entrypoint.sh executable. Set permissions to 755.


(Jef Statham) #3

Thank for the reply. Fixed now the problem was that the drive mounted by fstab configuration was not executable.


(Alexandroscgb) #4

Hi. I’m new to Docker, and I’m getting permission denied trying to run a mariadb container. They say about 755 on docker-entrypoint.sh but I simply cannot find that file, anywhere.

Any help?

Thanks.


(Jef Statham) #5

docker-entrypoint.sh in that reply is a file added to the dockerfile to create an image. It’s not relevant to your mariadb issue I’m assuming.