adalyn.app Explore Community
Other
Share code
Docker Basics and Commands

The most essential knowledge and commands for using Docker

#docker

Preview (10 cards)

How do you list all networks?

docker network ls

How do you remove all unused images?

docker image prune

How do you remove a container and its volumes?

docker rm -v <container_id>

How do you list view the logs of a container in real time?

docker logs -f <container_id>

How do you see the details of a specific container?

docker inspect <container_id>

How do you list all volumes?

docker volume ls

How do you run a command in a running container?

docker exec -it <container_id> <command>

How does Docker platform help developers?

It manages the lifecycle: develop, distribute, test, and deploy containers.

How do you list all images?

docker image ls

How do you see the details of a specific image?

docker inspect <image_id>

Ready to master this source?

Import this source into your Adalyn library to start learning with spaced repetition.