Docker common commands
Docker image file and container command
-
docker images
- View all mirrors
-
docker rmi [image_id]
- Deletes an image based on imageid
-
sudo docker rmi $(docker images -q)
- Delete all mirrors
-
docker ps -a
- View the status of all containers
- docker container ls -all
-
docker rm $(sudo docker ps -a -q)
- Delete all containers