1. Install docker
yum install docker
2. Start docker
systemctl start docker
3. View version
docker -v
4. Set the automatic start docker
systemctl enable docker
5. Stop docker
systemctl stop docker
6. Search docker Mirror
docker search image name, such as: docker search mysql
7. Pull mirror
docker pull mirror names such as: docker pull mysql (without the version number indicates the current mirror)
8. Remove Mirror
docker rmi image id
9. Run image file
docker run --name selfimaging name -d defined (indicate running in the background) -p port number: port number mapping mirroring names such as: docker run --name mytomcat -d -p 8080: 8080 tomcat
10. Stop Run
docker stop container id (or name of the vessel) such as: docker stop mytomcat
11. Review docker process
docker ps -a (all represented)
12. Delete container
docker rm container id
13. The container log
docker logs container id