eugeneware / docker-wordpress-nginx

A Dockerfile that installs the latest wordpress, nginx and php-fpm.
MIT License
874 stars 380 forks source link

Wordpress installation reacheable with the docker machine ip instead of the container ip #45

Closed omargourari closed 8 years ago

omargourari commented 8 years ago

I'm experiencing a problem with the container after I started it. I'm able to get to the docker machine ip and reach the Wordpress Installation menu but I'm not able to get the container ip. When I reach the container ip page I get the Apache(?) page "It works!" I'm running just this container inside a --virtualbox docker machine. No additional setup has been made on the virtualbox side.

What I'm not getting?

omargourari commented 8 years ago

I discovered how to expose a port to an host: http://docs.docker.com/engine/reference/run/#expose-incoming-ports