简体   繁体   English

Windows的Docker Toolbox,容器在主机上不可用

[英]Docker Toolbox for Windows, Container is not accesible on the host

I am new and working on Docker on my Windows Machine. 我是新手,正在Windows机器上使用Docker。 I got toolbox installed on my machine well and ran a container, see below: 我在机器上很好地安装了工具箱,并运行了一个容器,如下所示:

$ docker ps

CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS              PORTS                                           NAMES
cea8e6cf92b5        seqvence/static-site   "/bin/sh -c 'cd /usr…"   21 minutes ago      Up 21 minutes       0.0.0.0:32769->80/tcp, 0.0.0.0:32768->443/tcp   competent_goodall

Now, this is a Linux container running on a Oracle VM on my windows machine. 现在,这是一个在Windows计算机上的Oracle VM上运行的Linux容器。 After this I expect to do a http://172.17.0.2:32769 on my windows machine and get a web page running on Ngnix server. 之后,我希望在Windows机器上执行http://172.17.0.2:32769 ,并在Ngnix服务器上运行一个网页。

Here is the container inspect: 这是容器检查:

"Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "81d64a885b80a000f3b91e9959acf125b170b7acb11a918bf77bf7fa3fea3ae1",
                    "EndpointID": "6cf13c7007539f0b31c6d8da52844477f13e1debd84a8f3e2ec63ee140e90014",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:02",
                    "DriverOpts": null
                }

I am not sure if any more details would be needed to understand the problem, so please feel free to let me know. 我不确定是否需要更多详细信息来理解该问题,所以请随时告诉我。

I think you should try either of the following, 我认为您应该尝试以下任一方法,

http://localhost:32769
http://(ipv4 of your windows machine):32769

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 docker 工具箱上运行 windows 容器? - Run windows container on docker toolbox? 如何从主机访问docker容器目录? - How to make a docker container directory accesible from host? Windows Docker Toolbox中的localhost上的容器不可用 - Container is not available on localhost in Windows Docker Toolbox 设置docker工具箱容器以接收发送给主机的信息 - Set docker toolbox container to receive information sended to host 如何从 Windows 中的工作台连接到 Docker Toolbox mysql 容器? - How to connect to Docker Toolbox mysql container from workbench in Windows? Windows上的Docker工具箱卷不会刷新容器上的更改 - Docker toolbox volumes on windows doesn't refresh changes on container Windows 10 Home(和Pro)上带有mysql容器问题的Docker工具箱 - Docker toolbox with mysql container problem on Windows 10 Home (and Pro) Docker:在 Windows 主机上挂载卷 - Windows Container - Docker: Mount volume on Windows host - Windows Container Windows主机中docker windows容器的真实位置? - Real location of docker windows container in a windows host? 在服务中运行时,浏览器无法访问Docker Swarm Windows Server容器 - Docker Swarm Windows Server container not accesible from browser when run in a service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM