当我在运行某条语句的时候
docker run -it -p 30001:22 --name=centos-ssh centos /bin/bash
提示
WARNING: IPv4 forwarding is disabled. Networking will not work.
解决:
vim /usr/lib/sysctl.d/00-system.conf
net.ipv4.ip_forward=1
systemctl restart network
当我在运行某条语句的时候
docker run -it -p 30001:22 --name=centos-ssh centos /bin/bash
提示
WARNING: IPv4 forwarding is disabled. Networking will not work.
解决:
vim /usr/lib/sysctl.d/00-system.conf
net.ipv4.ip_forward=1
systemctl restart network