When starting a Docker container and no name has been provided, it will automatically generate a unique name for the container.

For example when you run the following command, it will start an Alpine container that displays a simple text and then exits.

$ docker run alpine echo "What's my name?"

So what’s the name of the container?
Lets run the following command to find out.

$ docker ps -a

So the name of the container we just created is; dreamy_kepler, however did you ever thought where this name comes from?

Well it’s a little Go names generator that will generate the name that consists of two parts (left part)  adjectives, and (the right part) is a mix of notable scientists or hackers.

You can find the source code over here at the Moby GitHub repo.
Btw, check line 637  😀

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.