Docker 部署本地127.0.0.1(localhost)地址无法使用,但是换成内网的IP地址可以正常访问 #1677
-
💻 Operating SystemmacOS 📦 EnvironmentDocker 🌐 BrowserChrome 🐛 Bug Description本地127.0.0.1(localhost)地址无法使用,但是换成内网的IP地址可以正常访问 🚦 Expected Behavior能够正常使用localhost(127.0.0.1) 📷 Recurrence Steps📝 Additional InformationNONE |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
你是在 Docker 里面装的 |
Beta Was this translation helpful? Give feedback.
-
You installed |
Beta Was this translation helpful? Give feedback.
-
那我想访问宿主机的4000端口怎么设置? |
Beta Was this translation helpful? Give feedback.
-
So how do I set up port 4000 that I want to access the host? |
Beta Was this translation helpful? Give feedback.
-
Docker之间互通是需要映射容器端口到宿主机端口的,这样Docker访问其他的容器是使用宿主机的内网 |
Beta Was this translation helpful? Give feedback.
-
To communicate between Dockers, you need to map the container port to the host port. In this way, Docker uses the host's intranet |
Beta Was this translation helpful? Give feedback.
你是在 Docker 里面装的
lobehub
所以,你这里写127.**
他访问的是他自己(lobehub容器本身),不是宿主机。 这不算是bug,也修不了。