KEMBAR78
Docker Cheat Sheet | PDF
0% found this document useful (0 votes)
15 views2 pages

Docker Cheat Sheet

This document is a Docker cheat sheet that provides essential commands for managing Docker containers and images. It includes explanations and examples for commands such as 'docker run', 'docker build', 'docker ps', and others. The cheat sheet serves as a quick reference for users to efficiently utilize Docker functionalities.

Uploaded by

Bereket Amlaku
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

Docker Cheat Sheet

This document is a Docker cheat sheet that provides essential commands for managing Docker containers and images. It includes explanations and examples for commands such as 'docker run', 'docker build', 'docker ps', and others. The cheat sheet serves as a quick reference for users to efficiently utilize Docker functionalities.

Uploaded by

Bereket Amlaku
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Docker Cheat Sheet

1. docker run
Explanation: Run a container from an image.

Example: docker run image-name

2. docker build
Explanation: Build an image from a Dockerfile.

Example: docker build -t image-name .

3. docker ps
Explanation: List running containers.

Example: docker ps

4. docker stop
Explanation: Stop a running container.

Example: docker stop container-id

5. docker rm
Explanation: Remove a container.

Example: docker rm container-id

6. docker rmi
Explanation: Remove an image.

Example: docker rmi image-name

7. docker pull
Explanation: Pull an image from a registry.

Example: docker pull image-name

8. docker exec
Explanation: Run a command in a running container.

Example: docker exec -it container-id command

9. docker logs
Explanation: Fetch the logs of a container.

Example: docker logs container-id

10. docker-compose up
Explanation: Start services defined in a docker-compose.yml file.

Example: docker-compose up

You might also like