Failed to call container command

Just ran into this error message while trying to pop the docker stack onto my local computer. I have a Dockerfile that is identical to the official Wordpress image. My docker creation file is as follows:

wordpress: image: joystick/wp ports: - "8000:80" links: - wordpress_db:mysql environment: - WORDPRESS_DB_HOST=mysql - WORDPRESS_DB_NAME=wordpress - WORDPRESS_DB_USER=admin - WORDPRESS_DB_PASSWORD=password wordpress_db: image: tutum/mysql environment: - ON_CREATE_DB=wordpress - MYSQL_PASS=password 

When I change the “image” part at the beginning of this word to “wordpress” and use the official image, everything happens as I expected. But when I try to create my own image first and then use it in this file for the dock, I get the error "The container command could not be called."

I tried adding the “command” node to the “wordpress” section of this docker layout, but that didn't work.

+7
docker docker-compose wordpress
source share
1 answer

If you create official images, for example. https://github.com/docker-library/wordpress/tree/master/apache , pay attention to the docker-entrypoint.sh file. It must be executable, I installed 755 and was able to create an image and start the container.

+22
source share

All Articles