cd /etc/default
[sudo] vim docker
DOCKER_OPTS = "--iptables=false"
[sudo] systemctl restart docker
參考:How to fix the Docker and UFW security flawdocker