Since the operating system will be upgraded from CentOS6.4 to CentOS7, first try the CentOS7. Start Container Service
Systemctl Start Docker.service
Download CentOS7 Mirrors
[root@wxtest1607 ~]# Docker Pull centos:7.2.1511 [root@wxtest1607 lixr]# Docker Images-REPOSITORY TAG IMAGE ID CREATED SIZE
centos 7.2.1511 686672a1d0cc 7 weeks ago 194.6 MB
Download Source: https://hub.docker.com/Login Docker CentOS7
Docker Run-ti 6866/bin/bash
#6866 is the first four digits of the image ID-to distinguish which image can be
root@b4ad1d1c87da/]#
#登录成功, Then you can do whatever you want.
Check the CENTOS7 system
Root@b4ad1d1c87da /]# uname-a
Linux b4ad1d1c87da 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 22:10:57 UTC 2015 x86_ x86_64 x86_64 gnu/linux
[root@b4ad1d1c87da/]# cat/etc/redhat-release CentOS
Linux release 7.2.1511 (Core)
Exit and then enter CENTOS7
[root@wxtest1607 ~]# Docker ps-a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b4ad1d1c87da 6866 "/bin/bash" seconds ago up 9
seconds Mad_swanson drunk_ Hypatia
[root@wxtest1607 ~]# Docker exec-ti b4ad/bin/bash
[Root@b4ad1d1c87da/]#