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 list all volumes?

docker volume ls

Why are containers beneficial?

They isolate apps, enhance security, provide portability and run many on one host.

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 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 attach a terminal to a running container?

docker attach <container_id>

How do you remove a container?

docker rm <container_id>

Ready to master this source?

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