Docker Commands Cheat Sheet Part 1 and 2

The idea of using container was made possible by the namespaces feature added to Linux kernel version 2.6.24. Namespaces allows to create an isolated container that has no visibility or access to objects outside the container. LXC, LXD, systemd-nspawn, Linux-VServer, OpenVZ and Docker are some of the management tools for Linux containers.

Main difference between native virtual machine and container is that in VM isolation is achieved by each VM have their own copies of Operating System files, libraries and application code. Whereas containers simply share the host operating system, including the kernel and libraries.

This article brings you docker command cheat in a printable A4 size and also in a pdf format for your quick reference. Please keep us posted if you need us to add more commands. Commands are categorized in 7 sections as listed below.

Contents of Cheat sheet

        PART 1

      • 1. Containers
        • 1.1. Lifecycle
        • 1.2. Starting and Stopping
        • 1.3. CPU Constraints
        • 1.4. Memory Constraints
        • 1.5. Capabilities
        • 1.6. Info
        • 1.7. Import / Export
        • 1.8. Executing Commands
      • 2. Images
        • 2.1. Lifecycle
        • 2.2. Info
        • 2.3. Cleaning up
        • 2.4. Load/Save image
        • 2.5. Import/Export container

        PART 2

      • 3. Networks
        • 3.1. Lifecycle
        • 3.2. Info
        • 3.3. Connection
      • 4. Registry & Repository
      • 5. Volumes
        • 5.1. Lifecycle
        • 5.2. Info
      • 6. Exposing ports
      • 7. Tips
        • 7.1. Get IP address
        • 7.2. Get port mapping
        • 7.3. Find containers by regular expression
        • 7.4. Get Environment Settings
        • 7.5. Kill running containers
        • 7.6. Delete old containers
        • 7.7. Delete stopped containers
        • 7.8. Delete dangling images
        • 7.9. Delete all images
        • 7.10. Delete dangling volumes

docker command cheat sheet part 1
docker command cheat sheet part 2

You can download docker commands cheat sheet pdf , Part 1 and Part 2 image A4 format.

About Bobbin Zachariah

Founder of LinOxide, passionate lover of Linux and technology writer. Started his career in Linux / Opensource from 2000. Love traveling, blogging and listening music. Reach Bobbin Zachariah about me page and google plus page.

Author Archive Page

Have anything to say?

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.