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 :

  • Docker pull/push using private registry without prefixing
  • Dockerfile with nesting via non-master branches
  • Configure a user to access Parse Dashboard remotely
  • SaltStack doesn't start docker container
  • Kubernetes and Dockerfile
  • bash script command “trap” doesn't work in docker container
  • 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 ?


  • How can I provision a Docker image using Ansible without installing locally?
  • Keep getting Could not read CA certificate when trying to start docker
  • Why does docker build not use the build cache?
  • Managing Docker images over time
  • How to install docker version 1.13.1 on Ubuntu 14.04
  • php-fpm child process exited on signal 11
  • 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.