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

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.

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

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

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.

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.