Containers

to list running containers.

docker ps

to list all containers.

docker ps -a

to see the configration for a specific image or container.

docker inspect <IMAGE-ID or CONTAINER-ID>

to run an container in interactive mode.

docker run -it <IMAGE>

to run an container in interactive mode + changing the default command.

docker run -it <IMAGE> <PROGRAM-PATH>

to stop a specific container.

docker stop <CONTAINER-ID>

to remove a specific container.

docker rm <CONTAINER-ID>

Volumes

to list all volumes.

docker volume ls

to remove a specific volume.

docker volume rm <VOLUME-NAME>

Images

to list all installed images.

docker images

to remove a specific image.

docker rmi <CONTAINER-ID>

to pull/download a specific image.

docker pull <IMAGE-NAME>