DEV Community

Cover image for 15 Docker Commands Beginners Should Know

15 Docker Commands Beginners Should Know

0xkoji on August 01, 2019

In this post, basically, I don't put options. If you think this command is lacking something important, you will need to check Docker Doc(https:/...
Collapse
 
quinncuatro profile image
Henry Quinn • • Edited

Brilliant. Definitely linking to this in a future article on containers, if that's cool.

Edit: Only thing I'd add would be exec. Folks who are getting into Docker likely have some experience on the command line, and being able to drop into a container's shell is hella helpful.

Collapse
 
jsugarman profile image
Joel Sugarman •

yeah i typically usedocker exec -it container_id/container_name bash/sh to get into existing, already running, containers

Collapse
 
0xkoji profile image
0xkoji • • Edited

Thanks, Henry(@quinncuatro )!
I will add exec.

Collapse
 
michael_wapp profile image
Michael Wapp •

I think another useful command is docker system prune, especially for beginners in order to start with a fresh state and avoid version problems.

Collapse
 
0xkoji profile image
0xkoji • • Edited

Thanks, Michael(@michael_wapp )!
I will add docker system prune

Collapse
 
rodrigondec profile image
Rodrigo Castro • • Edited

Amazing article.

May I use your docker picture on my presentation for docker on Campus Party event (I will give credits and link your article)?

Collapse
 
0xkoji profile image
0xkoji • • Edited

@rodrigondec , feel free to use it!

Collapse
 
amaurybsouza profile image
Amaury Borges Souza • • Edited

Very nice, I published a new article about Docker in my Medium blog. If you to access, link below:

medium.com/@amaurybsouza/docker-pa...

Collapse
 
markuswa_ profile image
Markus •

You forgot the most important one:docker help 😉

Collapse
 
vit100 profile image
Vitaliy Markitanov •

exit is not docker command. It is command of your OS shell running in container.

Collapse
 
tinabu profile image
Tina Bu •

Love your illustration Koji! Please do another article on the commands in Dockerfile.

Collapse
 
moonsmile profile image
Nguyễn Minh Tuấn •

good blog,... thank for sharing <3

Collapse
 
hellovietduc profile image
Duc Nguyen •

The picture is enough Internet for today :D