This document contains useful Docker commands to manage containers, images, and volumes.
- View all images:
docker images
- List all volumes:
docker volume ls
-
View running containers:
docker ps
-
View all containers (including stopped):
docker ps -a
-
Start a container:
docker start ubuntu_vulkan_api
-
Access a running container:
docker attach ubuntu_vulkan_api
Or:
docker exec -it ubuntu_vulkan_api bash
- Exit the container without stopping it:
- Use
exit
to leave the container. - Use
Ctrl + Q
(Read Escape Sequence) to leave the terminal without stopping the container.
- Use
For more Docker commands and details, refer to the Docker documentation.