Images
docker images
# list all images on the system
docker image ls -a
# list all images, including intermediate layers
docker image inspect <image-id>
# display detailed information about an image
docker image history <image-id>
# show the history of an image
docker image rm <image-id>
# remove an image
Containers
docker ps
# list running containers
docker ps -a
# list all containers, including stopped ones
docker inspect <container-id>
# display detailed information about a container
docker logs <container-id>
# display logs of a container
docker logs -f <container-id>
# follow logs of a container in real-time
docker top <container-id>
# display running processes in a container