centos7安装docker

http://www.cnblogs.com/zfzf1/p/7689614.html

sed -i '1a nameserver 8.8.8.8' /etc/resolv.conf

 

yum -y install docker

 

 

启动docker并设置为开机自启

[root@localhost ~]# systemctl start docker
[root@localhost ~]# systemctl enable docker


测试 docker info
docker run hello-world

   docker images

posted @ 2018-03-03 23:14  zfzf1  阅读(84)  评论(0编辑  收藏  举报