Docker - 解决运行容器报 WARNING: IPv4 forwarding is disabled. Networking will not work. 的问题
问题背景
执行运行容器的命令
docker run -d -uroot -p 8080:8080 --name jenkins2 -v /var/jenkins_node/:/var/jenkins_home jenkins
结果报 WARNING: IPv4 forwarding is disabled. Networking will not work.
解决方案
重启network和docker服务
systemctl restart network && systemctl restart docker
再次执行运行容器的命令即可解决此问题