DockerCheatSheet: A Comprehensive Guide to Docker Commands

This repository profile is provided by osrepos.com, an open source repository discovery platform.

DockerCheatSheet: A Comprehensive Guide to Docker Commands

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

Analyzed by OSRepos on July 17, 2026

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

Related repositories

Similar repositories that may be relevant next.

HomeHub: Your Private, Self-Hosted Family Utility Dashboard

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.

HTMLself-hostedfamily-utility
Airo: Effortless Project Deployment from Local to Production VPS

Airo: Effortless Project Deployment from Local to Production VPS

May 3, 2026

Airo is a Go-based tool designed for simple and efficient deployment of projects from a local machine to a production VPS. It automates the process of building Docker images and deploying them via SSH or a registry, making it ideal for self-hosted side projects. This solution offers a straightforward alternative to complex CI/CD pipelines, focusing on speed and control.

devopsself-hostedGo
nebula-sync: Effortlessly Synchronize Your Pi-hole Configurations

nebula-sync: Effortlessly Synchronize Your Pi-hole Configurations

May 2, 2026

nebula-sync is a powerful tool designed to synchronize configurations across multiple Pi-hole v6.x instances. Developed in Go, it offers both full and selective synchronization options, ensuring your ad-blocking setup remains consistent and up-to-date across your network. This project simplifies the management of distributed Pi-hole deployments.

dnsdockergolang
docker-volume-backup: Robust Docker Volume Backups to Multiple Storages

docker-volume-backup: Robust Docker Volume Backups to Multiple Storages

April 23, 2026

docker-volume-backup is a lightweight companion container designed for robust Docker volume backups. It handles recurring or one-off backups to various destinations like S3, WebDAV, Azure Blob Storage, Dropbox, Google Drive, or SSH, and includes features like encryption and old backup rotation. This tool ensures your Docker data is safely stored and easily recoverable.

backupdockerdocker-volume

Source repository

Open the original repository on GitHub.

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️