phui.chen Posted February 2, 2023 Share Posted February 2, 2023 今天更改swag模板发现添加端口无法设置容器端口 网络类型:br0;此时添加端口就只有主机端口,没有容器端口选项 后将网络类型更改为bridge;再添加端口,此时主机端口和容器端口就都可以设置了 Quote Link to comment
night-city Posted February 28 Share Posted February 28 是的,我也发现了,谢谢啦,我都不知道改成bridge可以改一下 Quote Link to comment
Solution anpple Posted March 1 Solution Share Posted March 1 建议补一下docker基础知识,自定义IP或者网桥host下是不需要改容器/主机端口的,唯一需要改端口的是bridge模式 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.