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

  • Docker Compose: Detect whether image needs to be re-built
  • Can't delete pods in pending state?
  • edited files at host, but docker container is not refreshed
  • How to retrieve metrics from Postfix in Docker Container
  • Can not ping docker in macOS
  • Docker: Cannot start container [8] System error: invalid argument
  • 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$ 
    

  • Checking File Checksum In Alpine
  • Meteor DDP call between containers on same host
  • docker custom network connexion refused between
  • How to continue a docker which is exited
  • Docker: Scaling Python container, memory overhead
  • How to tell Docker client location of Notary Server?
  • 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.