I’m trying to get wordpress running through docker. I was able to initially get a container running, but found I needed to make changes. Made changes. rm’d the containers and found old data still there, not reliable. rm’d the containers and ran a purge. since then, any containers I create say they are starting, but don’t return anything when I try to connect with them.
Any ideas or suggestions?
Steps to reproduce:
vi docker-compose.yml
sudo docker-compose up -d --build
[usable here, find out settings not right]
sudo docker container list
sudo docker container stop 158f9db47e8f
[make changes here]
vi docker-compose.yml
sudo docker-compose up -d --build
[data corrupt]
sudo docker container list
sudo docker container stop [container list]
sudo docker container rm [container list]
sudo docker image list
sudo docker image rm [image list]
sudo docker system prune -a
[start over]
sudo docker-compose up -d --build
[can't even connect, just get blank screen]
No matter how many times I do the above, I can no longer get containers working properly. Docker does not through any errors to the command line.
$ docker container list
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cc9d44fd75a6 wordpress:latest "docker-entrypoint.s…" 6 days ago Up 5 days 0.0.0.0:8000->80/tcp wordpress_wordpress_1
524ca904465d mysql:5.7 "docker-entrypoint.s…" 6 days ago Up 5 days 3306/tcp, 33060/tcp wordpress_db_1
Right now I’m seeing a couple of problems:
When I try to connect to the website for Wordpress, I just get a blank screen.
Again when trying to connect to http://localhost:8000 I get routed to my localhost’s ip address instead of just 127.0.0.1
I’m not sure if they are related, but in any case I’m not able to connect to Wordpress like I was able to until I made some changes.