容器ip冲突问题
#6954
Replies: 1 comment 4 replies
-
解决 IP 冲突的几种方案 若希望容器在重启时能够正常分配新的 IP 地址,可以考虑以下方案:
docker network prune -f
例如,使用一个较大的子网范围: networks:
my_network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
联系方式
No response
1Panel 版本
v1.10.20-lts
问题描述
同一网络下,重启服务器后可能会存在ip别占用问题,导致服务启动失败。目前我的服务大概25个左右,每次重启可能会有一个到两个服务启动失败,需要自己去把ip删除掉或者是更换掉才可以正常启动
重现步骤
重启服务器,发现ip被占用问题
期待的正确结果
希望可以把容器内的服务换成固定的方式,这样每次重启不会发现这种问题
相关日志输出
No response
附加信息
No response
Beta Was this translation helpful? Give feedback.
All reactions