patterndockerMinor
Names field in docker ps -a command
Viewed 0 times
dockercommandfieldnames
Problem
When I run the "docker ps -a" command following command I fields:
If I try to do a "docker run -it sweet_curran bash" I get an "unable to find image" error. What the "Names" field used for if I cannot use it to run the image?
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d69c6f81b591 paigeeworld/centos7 "/bin/bash" 10 minutes ago Exited (0) 10 minutes ago sweet_curranIf I try to do a "docker run -it sweet_curran bash" I get an "unable to find image" error. What the "Names" field used for if I cannot use it to run the image?
Solution
If you don't name a container when you run it Docker will make up a random name for you. This is handy for differentiating different invocations of a container without resorting to hex values. You can see by checking the source all of the possible names that could be generated.
Context
StackExchange DevOps Q#15290, answer score: 1
Revisions (0)
No revisions yet.