Docker Community Forums

Share and learn in the Docker community.

New to docker kindly help


(Durgesh07) #1

Hello Foroum,
I am new to docker…please bear my question and help me…i have spoon the centos container, and when ```
“docker container ls”
gives below output, what does NAMES mean, it is not related to me.

375aac14ea17 centos “/bin/bash” 12 minutes ago Up 12 minutes zealous_kalam


(Neonerd) #2

The names column is just a name you can give to a container you ran. If you use the command docker runwithout the --name somename it will default the name to a randomized name.
With the name you can simply certain docker commands by referring to it:
e.g. docker container rm somename instead of docker container rm imageid