随笔分类 -  Docker

摘要:1、Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? systemctl daemon-reload systemctl restart docker.s 阅读全文
posted @ 2019-08-07 14:35 pdun 阅读(107) 评论(0) 推荐(0)
摘要:一、简介 如图 1、自定义centos [root@linuxxx ~]# docker pull centos #新拉下来一个centos镜像 [root@linuxxx ~]# docker run -it centos /bin/bash #运行镜像 [root@220f2981c7b6 /] 阅读全文
posted @ 2019-08-07 14:34 pdun 阅读(164) 评论(0) 推荐(0)
摘要:Docker简介 二、使用 1、命令添加 [root@linuxxx ~]# docker run -it -v /myVolume:/containVolume centos #可以自动新建目录 #执行完这句话后,已经产生了绑定关系, 可以使用docker inspect ID查看 Volumes 阅读全文
posted @ 2019-08-06 22:18 pdun 阅读(375) 评论(0) 推荐(0)