Docker Commands PDF
Docker Commands PDF
com
Subject: docker commands
Date: June 30, 2020 at 10:05 AM
To: John Dormishian [email protected]
Introduction
No matter if you are new to Docker or already have some experience with
containerization, it is always good to have a reference point for all the
common Docker commands.
In this tutorial, you will find the most common Docker commands along
with a downloadable cheat sheet.
In this section you will find the most important commands related to the
lifecycle of Docker containers.
docker rm [CONTAINER]
The following commands show you how to start and stop processes in a
particular container.
Start a container:
Block a container until others stop (after which it prints their exit codes):
Below you fill find all the necessary commands for working with Docker
images.
Remove an image:
Save an image to a tar archive, streamed to STDOUT with all parent layers,
tags, and versions:
Once you set up your containers, you will need to know how to get all the
important information for managing them. The following commands will
provide details on images and containers on your system.
List running containers:
docker ps
List all images that are locally stored with the docker engine:
docke image ls
Networks
List networks:
docker network ls
Conclusion
This list of commonly used Docker commands should help you become
more familiar with them. The cheat sheet will be helpful when you want to
create and manage containers, images, and networks.