-e ip = 128.0.0.1使用$ ip
docker run -it -p 30001:22 –name=centos-ssh centos /bin/bash
WARNING: IPv4 forwarding is disabled. Networking will not work.
—->
打开ipv4重启网络即可
vim /usr/lib/sysctl.d/00-system.conf
net.ipv4.ip_forward=1
systemctl restart network
docker使用日志
最新推荐文章于 2024-05-29 14:58:48 发布