标签:代码 test cal systemctl epo lib network set .com
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# setenforce 0
[root@localhost ~]# systemctl start docker
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hub.c.163.com/library/nginx latest db079554b4d2 10 hours ago 181.8 MB
hub.c.163.com/library/tomcat latest c822d296d232 3 weeks ago 355.2 MB
注意:创建容器的时候报这个错
[root@localhost ~]# docker run -ti -p 80:80 hub.c.163.com/library/nginx /bin/bash
WARNING: IPv4 forwarding is disabled. Networking will not work.
解决办法:
[root@localhost ~]# vi /usr/lib/sysctl.d/00-system.conf
docker : 报错 WARNING: IPv4 forwarding is disabled. Networking will not work.
标签:代码 test cal systemctl epo lib network set .com
原文地址:http://www.cnblogs.com/daxiansmd/p/6413063.html