Getting wordpress docker to run on local host

I have followed this github and I my localhost port 80 is not showing anything

https://github.com/eugeneware/dockerwordpressnginx

  • How to add initial users when starting a RabbitMQ Docker container?
  • Connect spark master to spark slave through docker compose
  • Not able to start any containers
  • docker java7 install fail
  • Can't connect to mySql docker container with JDBC
  • Docker daemon no start
  • this is the terminal output

    Successfully built f4843e2f3e47
    bash-3.2$ docker run -p 80:80 --name docker-wordpress-nginx -d docker-wordpress-nginx
    08665dbffdbbf7678b57d62766f367f503e2f9444e11ea86ea2bb6aa932127fd
    bash-3.2$ docker start docker-wordpress-nginx
    docker-wordpress-nginx
    bash-3.2$ docker ps
    CONTAINER ID        IMAGE                           COMMAND                CREATED             STATUS              PORTS                          NAMES
    08665dbffdbb        docker-wordpress-nginx:latest   "/bin/bash /start.sh   18 seconds ago      Up 17 seconds       3306/tcp, 0.0.0.0:80->80/tcp   docker-wordpress-nginx   
    bash-3.2$ docker ps
    CONTAINER ID        IMAGE                           COMMAND                CREATED             STATUS              PORTS                          NAMES
    08665dbffdbb        docker-wordpress-nginx:latest   "/bin/bash /start.sh   50 seconds ago      Up 49 seconds       3306/tcp, 0.0.0.0:80->80/tcp   docker-wordpress-nginx   
    bash-3.2$ 
    

  • Unable to run mongod inside ubuntu docker container through ssh (Docker is started using “--net=host”)
  • Docker daemon wont start even after adding user/deleting host environment var etc
  • Cannot reach web server inside Docker
  • How to update docker stack without restarting all services
  • Postgres shuts down immediately when started with docker-compose
  • Docker Windows Container - DockerFile set iis default document
  • One Solution collect form web for “Getting wordpress docker to run on local host”

    The exact behavior here depends a bit on your docker version, though with the newer versions (1.2+) wordpress, when running in the container, needs to be configured to listen to connections from any address rather then 127.0.0.1 or ::1. You can check if this is your problem by running

    netstat -nlp | grep 80
    

    from within the container and see if the output is something like:

    tcp6       0      0 :::80                   :::*                    LISTEN      - 
    

    then it’s correct. If instead it’s like: (this example is from a mysql container)

    tcp        0      0 127.0.0.1:3306            0.0.0.0:*               LISTEN      -
    

    Then no other container or host will be able to connect to it.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.