解决 CentOS 8 上Docker容器内无法联网

只需要将 Docker 添加到 firewalld 的 trusted 组即可。

执行:

firewall-cmd --permanent --zone=trusted --change-interface=docker0
firewall-cmd --reload

升级

仓库地址: https://download.docker.com/linux/centos/8/x86_64/stable/Packages/

类似命令:dnf install https://download.docker.com/linux/centos/8/x86_64/stable/Packages/docker-ce-20.10.1-3.el8.x86_64.rpm –allowerasing

Leave a Reply

Your email address will not be published. Required fields are marked *

lWoHvYe 无悔,专一