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.
docker docker-compose wordpress
the0ther
source share