Docker container not exposed on network

tutiplain

I am new to docker. I am running it on windows. I am trying to get a container named "ghost" (available from the Docker Hub) to work on a Windows 8.1 machine. While the container starts correctly and supposedly exposes url at http://localhost:2368, when I enter this address nothing happens. The same has happened when trying other containers from the Hub which expose urls.

I tried accessing the container's exposed URL from the IP Address I get from the "docker ip" but it failed too. I also tried running the container with the "--net="bridge"" option, to no avail. I think I'm missing something pretty basic, but I can't for the life of me figure out what. Can someone point me in the right direction?

0x7d7b

When you install Docker on Windows that means you most likely installed boot2docker.

boot2docker starts a minimal Linux VM (based on VirtualBox) because Docker requires a Linux kernel to run. The Docker daemon is started on that VM and not on your localhost.

You can determine the VMs IP address by typing boot2docker ip on your command line. The standard boot2docker IP address is 192.168.59.103 if you did not configure something else or have multiple instances of that VM running.

So when you execute docker run --name ghost -p 2368:2368 -d ghost the port 2368 is opened at 192.168.59.103:2368. That is where you need to connect to.

For more information please read the official boot2docker documentation.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

No network connectivity to/from Docker CE container on CentOS 8

From Java

How to connect to a docker container from outside the host (same network) [Windows]

From Java

Docker ports are not exposed

From Dev

Docker - Why is this express.js container with an exposed/published port reject connections? (using boot2docker)

From Dev

Ping Docker Container from another machine in the network

From Dev

How can I rate limit network traffic on a docker container

From Dev

connecting to exposed docker container

From Dev

Limit Network access but allow a specific IP for a Running Docker Container

From Dev

Docker container Network connection between different host

From Dev

use docker container on host network without sharing host's ip

From Dev

docker container network/DNS/Firewall issue

From Dev

How can I add hostnames to a container on the same docker network?

From Dev

Not able to connect to network inside docker container

From Dev

Add docker container to network under two different names

From Dev

How to access webserver running on localhost from a docker container on a network?

From Dev

Cannot connect Docker container to Weave network

From Dev

How to access docker container from another machine on local network

From Dev

Slow network performance in Docker container

From Dev

Connecting Docker Container running on bridge network to Localhost

From Dev

docker container can't communicate to other container on the same network

From Dev

docker container network/DNS/Firewall issue

From Dev

How to reach a docker container from a device that is in the same network as the docker host?

From Dev

Docker: exposed ports cannot be accessed in another container

From Dev

Docker container can't connect to another using a docker network

From Dev

Docker with multiple exposed ports

From Dev

Docker container as network gateway [Not responding]

From Dev

Docker multi container multi network setup

From Dev

Talk to server on docker container with no exposed ports

From Dev

Docker for Windows - access container in local network

Related Related

  1. 1

    No network connectivity to/from Docker CE container on CentOS 8

  2. 2

    How to connect to a docker container from outside the host (same network) [Windows]

  3. 3

    Docker ports are not exposed

  4. 4

    Docker - Why is this express.js container with an exposed/published port reject connections? (using boot2docker)

  5. 5

    Ping Docker Container from another machine in the network

  6. 6

    How can I rate limit network traffic on a docker container

  7. 7

    connecting to exposed docker container

  8. 8

    Limit Network access but allow a specific IP for a Running Docker Container

  9. 9

    Docker container Network connection between different host

  10. 10

    use docker container on host network without sharing host's ip

  11. 11

    docker container network/DNS/Firewall issue

  12. 12

    How can I add hostnames to a container on the same docker network?

  13. 13

    Not able to connect to network inside docker container

  14. 14

    Add docker container to network under two different names

  15. 15

    How to access webserver running on localhost from a docker container on a network?

  16. 16

    Cannot connect Docker container to Weave network

  17. 17

    How to access docker container from another machine on local network

  18. 18

    Slow network performance in Docker container

  19. 19

    Connecting Docker Container running on bridge network to Localhost

  20. 20

    docker container can't communicate to other container on the same network

  21. 21

    docker container network/DNS/Firewall issue

  22. 22

    How to reach a docker container from a device that is in the same network as the docker host?

  23. 23

    Docker: exposed ports cannot be accessed in another container

  24. 24

    Docker container can't connect to another using a docker network

  25. 25

    Docker with multiple exposed ports

  26. 26

    Docker container as network gateway [Not responding]

  27. 27

    Docker multi container multi network setup

  28. 28

    Talk to server on docker container with no exposed ports

  29. 29

    Docker for Windows - access container in local network

HotTag

Archive