DockerCheatSheet: A Comprehensive Guide to Docker Commands
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
The DockerCheatSheet repository offers a comprehensive and highly-starred collection of Docker commands, serving as an invaluable resource for developers and DevOps engineers. Based on the 'Painless Docker' guide, it covers everything from basic container operations to advanced Docker Swarm and Compose functionalities. With nearly 4,000 stars, this cheat sheet is a popular and actively maintained reference for mastering Docker.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
The DockerCheatSheet repository by eon01 is an incredibly popular and well-maintained resource for anyone working with Docker. With thousands of stars and forks, it serves as a quick and comprehensive reference guide for various Docker commands and concepts. This cheat sheet is an adaptation of content from the 'Painless Docker' (2nd edition) guide, making it a reliable source for practical Docker knowledge.
Getting Started with Docker
To begin interacting with Docker registries and images, here are some fundamental commands:
Login to Docker Registry
docker login
docker login localhost:8080
Search for Docker Images
docker search nginx
docker search --filter stars=3 --no-trunc nginx
Pull Docker Images
docker image pull nginx
docker image pull eon01/nginx localhost:5000/myadmin/nginx
Build Docker Images
docker build .
docker build -t eon/infinite .
Key Docker Commands
The DockerCheatSheet covers a wide array of commands, making it easy to manage your Docker environment.
Container Management
Create and Run a Container
docker container run --name infinite -it -p 3000:80 -v ${PWD}:/data ubuntu:latest
Start and Stop Containers
docker container start nginx
docker container stop nginx
Remove a Container
docker container rm infinite
List Active Containers
docker container ls
docker container ls -a
Docker Networking
Create a Network
docker network create -d overlay MyOverlayNetwork
Connect a Container to a Network
docker network connect MyOverlayNetwork nginx
Docker Swarm
Initialize Docker Swarm
docker swarm init --advertise-addr 192.168.10.1
Create a Service
docker service create --name vote -p 8080:80 instavote/vote
Docker Compose
Start Services in Background
docker compose up -d
Stop and Remove Containers
docker compose down
Docker Cleanup
Remove All Exited Containers
docker container rm $(docker container ls -a -f status=exited -q)
Prune Unused Docker Data
docker system prune -f
Why Use This Cheat Sheet?
This Docker cheat sheet is an essential tool for anyone working with containerization. It provides a quick, organized, and comprehensive reference for frequently used Docker commands, saving valuable time during development and operations. Whether you are a beginner learning Docker or an experienced professional needing a quick reminder, this repository helps streamline your workflow and reinforce your understanding of Docker's vast capabilities. Its clear structure and practical examples make it an excellent companion for daily Docker tasks.
Useful Links
- GitHub Repository: eon01/DockerCheatSheet
- Source Material: Painless Docker (2nd edition)
Related repositories
Similar repositories that may be relevant next.
Local LLM Linux Troubleshoot: An AI Agent for Linux Diagnostics
September 14, 2026
Local LLM Linux Troubleshoot is an AI-powered agent designed to diagnose and resolve issues on Linux systems. It leverages llama.cpp for local AI processing, offering system diagnostics, safe command execution, and support for Docker, CLI, and a web GUI. This tool provides a privacy-first approach to managing and troubleshooting your Linux environment.

ArcReel: Open-Source AI Video Production Workspace for Stories and Scripts
September 1, 2026
ArcReel is an open-source, self-hosted AI video production workspace designed to transform novels, screenplays, or product assets into short videos. It offers a comprehensive pipeline for content analysis, asset management, storyboarding, and video generation, ensuring visual continuity and cost tracking. Users can control the production process and export editable drafts for further refinement.

gh-aw-firewall: Secure Your Agentic Workflows with a Network Firewall
August 16, 2026
gh-aw-firewall is a robust network firewall designed specifically for agentic workflows, restricting outbound HTTP/HTTPS traffic to an allowlist of domains. It operates by running commands within a Docker sandbox, leveraging a Squid proxy for traffic filtering and an optional API proxy sidecar to securely manage LLM API keys. This project is a crucial component of GitHub's ongoing exploration into Agentic Workflows, enhancing their security and control.
HomeHub: Your Private, Self-Hosted Family Utility Dashboard
May 8, 2026
HomeHub is a private, lightweight, and self-hosted web application designed to be your family's all-in-one dashboard. It transforms any computer, even a Raspberry Pi, into a central hub for managing daily household activities, offering features like shared notes, shopping lists, and expense tracking. With no login required and a focus on privacy, all your data remains on your local network, ensuring no cloud dependency or tracking.
Source repository
Open the original repository on GitHub.
27 counted GitHub visits