Show Menu
Cheatography

Docker Cheat Sheet (DRAFT) by

Docker

This is a draft cheat sheet. It is a work in progress and is not finished yet.

.

.
 

Build Images

Build Image w/ Tag
sudo docker build -t <ta­g_n­ame> .
Create and start a container
sudo docker run --name <co­nta­ine­r_n­ame> -it -d -p <ex­pos­ed_­por­t>:­<in­ter­nal­_po­rt> <ta­g_n­ame>
Remove a container
sudo docker rm <co­nta­ine­r_n­ame>
Stop a container
sudo docker stop <co­nta­ine­r_n­ame>
Start a container
sudo docker start <co­nta­ine­r_n­ame>