1 start docker
$ systemctl status docker root (check the status and execute the following command if it is not started)
$ systemctl start docker root
2 Download centos mirror
$ docker search centos (search first)
$ docker pull centos:7.2.1511
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
centos 7.2.1511 61ea52df69fb 7 weeks ago 194.6 MB
3. Log in to centos
$ docker run -ti 61ea52df69fb /bin/bash (go in)
4. Exit
Ctrl-D
or
$ exit