docker version View version systemctl start docker.service start docker container docker info View details docker docker RM $ (sudo docker PS -a - q) Empty containers are not running docker RM the above mentioned id / name to delete a container docker rmi the above mentioned id / name to delete a mirrored docker search mysql search image docker images redis view mirror Docker PS - a show all containers, including not running. docker ps lists all running in the container information service docker stop stop Docker Docker STOP ID / name to start / stop a container Docker RUN -d -p 1001 : 1001 docker1 mirror images starting from a container docker start b5e08e1435b3 a start ID for b5e08e1435b3 the containers come running and enter interactive mode. the kill Docker - S KILL 94c6b3c3f04a 94c6b3c3f04a kill a container ID of the container and sending a signal KILL docker logs container to view the information specified container id start docker logs - F container See id specified container startup information Docker Exec Expediting IT container id / bin / bash to enter jenkins container systemctl restart docker container restart firewall-related. View firewall running state: Firewall -cmd - State View firewall service is on, you can remove the .service systemctl status firewalld.service view firewall service is open systemctl status firewall View firewalld service area currently used Firewall -cmd - GET - default - zone is the default region open port (the port allows flow) Firewall -cmd --zone =public --add-Port = 80 / TCP - Permanent turn off the firewall commands: systemctl stop firewalld.service open the firewall: systemctl start firewalld.service be turned off from the start: systemctl disable firewalld.service open boot: systemctl enable firewalld.service