# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)docker
# yum install dockercentos
# docker versionbash
# systemctl start docker.service
# systemctl enable docker.serviceide
# vi /etc/sysconfig/docker
OPTIONS='--registry-mirror=https://xxxxxxx.mirror.aliyuncs.com'centos7
# systemctl restart docker.servicerest
# docker search centos7
# docker pull centos:centos7
# docker p_w_picpathsit
# docker run -it centos:centos7 /bin/bash
# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
# exit
exitio
#再打開一個登錄窗口查看
# docker psclass
#docker中止後臺運行的鏡像?
# docker stop/kill (container_id)
# docker stop `docker ps|grep centos7 | awk { 'print $1'}`awk