Docker-docker commonly used commands summary

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/sinat_22797429/article/details/82598139

table of Contents

Article Directory

introduction

docker ps:   List all containers
docker ps -a: shows all containers (including non-running)
Docker ImagesRF Royalty Free: lists all mirror
mirror after the docker commit -m = "information submitted" -a = "author" e218edb10161 change name
docker rmi image_id: removing the mirror
docker rm container_id: removing container
docker stop container_id: stop the container
docker port container_id: View container Port
Docker Top container_id: View container running processes
docker exec -it container_id bash: enter the container
docker logs -f container_id: View of container logs

Guess you like

Origin blog.csdn.net/sinat_22797429/article/details/82598139