PHP速学视频免费教程(入门到精通)
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
1、拉取centos7镜像
[root@localhost ~]# docker pull centos:7
2、启动镜像centos7,如果不指定 /bin/bash,容器运行后会自动停止
[root@localhost ~]# docker run -d -i -t <image> /bin/bash</image>
3、进入容器
[root@localhost ~]# docker exec -it <container> bash</container>
4、进入后发现没有ifconfig,直接yum安装
[root@8f10fbd6bd5a /]# yum install -y net-tools
5、无法ping外网,查找资料重建docker0网络解决
[root@localhost ~]# pkill docker [root@localhost ~]# iptables -t nat -F [root@localhost ~]# ifconfig docker0 down [root@localhost ~]# brctl delbr docker0 [root@localhost ~]# systemctl restart docker [root@localhost ~]# docker start <container></container>
推荐教程:docker教程
已抢6878个
抢已抢92509个
抢已抢14533个
抢已抢50884个
抢已抢191684个
抢已抢86600个
抢