宿主机如何连接Docker容器里面的Linux主机呢?
巴扎黑
巴扎黑 2017-04-21 11:15:59
0
4
671

宿主机都无法ping通容器中的Linux,这可咋办?

巴扎黑
巴扎黑

reply all(4)
巴扎黑

The Docker Engine uses Linux-specific kernel features, so to run it on
Windows we need to use a lightweight virtual machine (vm). You use the
Windows Docker client to control the virtualized Docker Engine to
build, run, and manage Docker containers.

The host you are talking about is win, it is the host of the virtual machine

左手右手慢动作

It seems that you are running Docker under Windows, and the Docker must be running in a VM.
It is recommended to check whether the VM's network configuration is NAT or something else.

左手右手慢动作

Because by default the docker container and your win machine are in two different network segments. As long as your host machine can ping the container, you can. If you want to connect via crt, you need to bind the port

洪涛

Please ask, how to solve this problem? I'm encountering the same problem now

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!