0

I'm new docker learner, and could someone explain to me why whenever we start a new container it's give to us random names (and where they come from, it's the last column), as shown in the image bellow enter image description here

OUTC-K
  • 121
  • 1
  • 1
  • 8
  • Containers are given random names because names are often easier for people to remember than long hexadecimal ids. If you give your container an explicit name (with the `--name` option) then it won't get a random name. – larsks Dec 26 '22 at 15:04
  • The linked question describes both how the names are generated and how to assign your own, as @larsks suggests. (Assigning a `docker run --name` is usually right.) – David Maze Dec 26 '22 at 16:40

0 Answers0