-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在安装docker的机器上,服务启动后使用的是docker的虚拟ip,导致无法访问该服务?是否可以指定运行网卡? #257
Comments
首先将你现在的docker提交镜像,之后使用该镜像重新开启新的容器,记得将容器的554端口映射到宿主机,这样就可以在宿主机访问该服务 |
使用 --network=host 指定为宿主机网络 |
我这边log打印是docker地址,实际上使用网卡ip仍然是可以的 |
@bjtudujunlin @Maggieeeeee @YangSN0719 @mrshengzyzy |
部署EasyDarwin 的 Dockerfile 是否能分享一下 |
仓库里面有 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在安装docker的机器上,服务启动后使用的是docker的虚拟ip,导致外部机器无法访问该服务。如下图:
![1645079556(1)](https://user-images.githubusercontent.com/8413635/154418807-cb8fdcff-8d05-4591-a175-c40df44f343d.png)
服务器ifconfig配置如下:
![1645079629(1)](https://user-images.githubusercontent.com/8413635/154419031-aef4c8f3-dcdf-4fbe-8c19-8911645289be.png)
请问下,是否可以指定使用哪个网卡?
The text was updated successfully, but these errors were encountered: