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 :

  • How to create a bash script file in Docker?
  • Process task structure between Docker and Host
  • Docker timeout while fetching image on Debian host
  • Converting an ElasticBeanstalk environment to a Docker container
  • “The output of `ssh-add -l` doesn't contain 'RSA'. Start the agent, add your keys?” in Docker
  • specify max log json file size in docker compose
  • 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 ?


  • Docker-machine cannot connect to default machine (Windows)
  • Join SwarmKit cluster with predefined token?
  • docker-compose basic Prometheus / Grafana example with one node exporter
  • docker rabbitmq crashing during startup
  • Installing cPhalcon on AWS Docker Image
  • How to forward source IPs to Docker containers without letting Docker mess with iptables
  • 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… 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.