1. 编辑 docker 配置文件
cd /etc/default
vim docker
2. 添加配置项
DOCKER_OPTS = "--iptables=false"
3. 重启 docker
sudo systemctl restart docker
参考:How to fix the Docker and UFW security flaw
cd /etc/default
vim docker
DOCKER_OPTS = "--iptables=false"
sudo systemctl restart docker
参考:How to fix the Docker and UFW security flaw