码迷,mamicode.com
首页 > 其他好文 > 详细

docker学习日志

时间:2017-04-12 18:53:31      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:docker

# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)


# yum install docker

# docker version

# systemctl start docker.service
# systemctl enable docker.service


# vi /etc/sysconfig/docker
OPTIONS=‘--registry-mirror=https://xxxxxxx.mirror.aliyuncs.com‘

# systemctl restart docker.service


# docker search centos7
# docker pull centos:centos7
# docker images


# docker run -it centos:centos7 /bin/bash
# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
# exit
exit


#再打开一个登陆窗口查看
# docker ps


#docker停止后台运行的镜像?
# docker stop/kill (container_id)
# docker stop `docker ps|grep centos7 | awk { ‘print $1‘}`


docker学习日志

标签:docker

原文地址:http://guowang327.blog.51cto.com/6513732/1915308

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!