Use Docker with my Ubuntu 14.04 (web access)

I’ve installed Docker on Ubuntu 14.04 by using repositories. I have version 1.6.2 build 7c8fca2.

I’ve launch my image with command :

  • Dockerfile production/build/debug/test environment
  • after delete docker image, why can still find the deleted image by _catlog api?
  • Docker Port Detection
  • Error response from daemon: Container CONTAINER_NAME is not running
  • docker-compose not setting environment variables with flask
  • running container from private registry with docker swarm
  • docker run -p 80:80 -v /workspace/private/workbench/:/current private/client

    This image launch a webserver I need to access… So I need the Docker’s container’s IP.

    When I type :

    docker inspect 8f1526ff5287

    I have this response with empty IPAddress :


    "NetworkSettings": {
    "Bridge": "",
    "Gateway": "",
    "GlobalIPv6Address": "",
    "GlobalIPv6PrefixLen": 0,
    "IPAddress": "",
    "IPPrefixLen": 0,
    "IPv6Gateway": "",
    "LinkLocalIPv6Address": "",
    "LinkLocalIPv6PrefixLen": 0,
    "MacAddress": "",
    "PortMapping": null,
    "Ports": null
    },

    How can I know/define this IP ?

    Thanks,

  • Setup secured Jenkins master with docker
  • Mounting local volumes to remote docker container, Possible?
  • running django worker and daphne in docker container
  • Adding a dir to root in docker still wont allow git access
  • fork/exec ./debug: operation not permitted
  • How to prevent “docker-machine create” to install/upgrade docker host, just add it
  • 3 Solutions collect form web for “Use Docker with my Ubuntu 14.04 (web access)”

    When using port mapping you’re mapping a port on your host to redirect traffic to the port on the container.
    So in order to access your service running in a container that was executed with -p 80:80, You simply need to go to http://localhost:80/

    is port 80 exposed in the image file?

    I’m the image’s maintainer 😉

    Yes, the ports are exposed… and this image work well on my MacBook (with Kitematick)…

    The problem is I can’t help him to launch my image on his Ubuntu since on my Apple, the container has an IP like 192.168.99.100… and I need to call it to have access to the webserver…

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