Docker Cookbook
View all running containers
$ docker ps
Removing containers
$ docker rm [CONTAINER_ID]
Managing images
List all images: [1]
$ docker images -a
Remove an image:
$ docker rmi [IMAGE_NAME]
Viewing files in a container
$ docker exec -t -i mycontainer /bin/bash
Exit the connection and return to the regular local filesystem command prompt with exit.
See also
- ↑ How To Remove Docker Images, Containers and Volumes - Digital Ocean