Docker端口映射后无法访问解决方法

Aman
评论:0 阅读:1341
时间:2022-5-5 06:05:56 分类: 备忘笔记

问题

docker运行容器后 无法访问靶机

原因

各种调试发现网卡少了个docker0

解决方法

重建docker0网卡

service docker stop
pkill docker
ifconfig docker0 down
brctl delbr docker0
service docker start
标签: docker 笔记

Powered by emlog pro © 主题Aman 豫ICP备16010520号-1