DEV Community

Cover image for Day 2: Docker Installation & Hello World!

Day 2: Docker Installation & Hello World!

Jonas Scholz on December 02, 2024

This is a crosspost from adventofdocker.com Today we are going to start with the installation of Docker and run our first container! This blog pos...
Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
code42cate profile image
Jonas Scholz

Sorry, what do you mean?

Collapse
 
bravemerida profile image
Besmir

fantastic

Collapse
 
code42cate profile image
Jonas Scholz

Thanks!

Collapse
 
userof profile image
Matthias Wiebe

Usually if i get chocolade-calendar - i'll open all doors in the same day :D

Collapse
 
fazly_fathhy profile image
Fazly Fathhy

i create the image successfully, but when i run it, it's run and give the cotainer id, but when i type 'docker ps' it doesnt show in the table, why?

Collapse
 
xinitd profile image
Shakhzhakhan Maxudbek

Try docker ps -a

Collapse
 
code42cate profile image
Jonas Scholz

the container is exiting immediately (thats on purpose). docker ps only shows running containers, docker ps --all or docker ps -a shows all of them. Thats why you only see it with the all flag! You can see the documentation with docker ps --help, there you see the explanation:)

Collapse
 
rajurk profile image
RAJESH K

Good one

Collapse
 
razpie profile image
razPie

This will be fun!

Collapse
 
code42cate profile image
Jonas Scholz

I hope so!:D Anything specific you want to learn?

Collapse
 
fazly_fathhy profile image
Fazly Fathhy

i mean i can see that container in the 'docker ps -a' only