10

I'm trying to run a docker and it fails for various reasons. As I check my list of dockers (docker ps -a), I see those names:

pedantic_gauss
recursing_feynman
adoring_brattain
suspicious_tesla
gallant_gates
competent_gates
elated_davinci
ecstatic_mahavira
focused_mirzakhani

I use docker-compose and I'm sure we do not have such names in our setup files. Is that just something docker people thought would be fun to do?! I searched on some of those names and could not really find anything useful, although it looks like these appear on many sites, somewhat sporadically.

Alexis Wilke
  • 1,007
  • 8
  • 25

1 Answers1

14

As mentioned in comments this is part of Docker's innate functionality, and is designed to make it easier to work with containers.

The canonical identifier for a Docker container is a SHA-256 hash, which is not the most user friendly thing to type.

So if you don't specify a name (using --name) when you start a container Docker will assign one to you.

The names are a combination of an adjective and a scientist's name, and the source code for generation is here. There is only one combination that is blocked in the Docker source code which is "boring_wozniak" because Steve Wozniak's not boring.

Rory McCune
  • 62,266
  • 14
  • 146
  • 222