In the GitHub UI, click "History" at the top-right corner of that file's page. That takes you to a listing of all commits that have ever touched this file. There aren't actually that many; the oldest, which you cite in the question, is commit a009d4a. Click on its commit hash in the UI.
That takes you to a page that shows that commit. That commit is mostly a pair of file renames. Note what got renamed.
That also commit has 1 parent 3fc9de3
. Click on that commit hash, and then the "Browse Files" button at the top-right corner of the UI. You are now browsing the Docker source tree at the commit immediately before the rename.
The commit description and diff reference a package namesgenerator
that got renamed. You can find that in the top-level directory listing in the pre-rename commit. Click into that, and then click "History" on that page to find the very early history of the name generator.
From this history we can find out:
- The name generator didn't exist at all more than 2 months before the rename commit you cite; its first commit was on 28 October 2013.
- The very first version of it generated names of the form
color_animal
. Its second commit added more colors and animals, so it would allow names like brown_bear
, red_bird
, yellow_duck
, and so on.
- The
mood_inventor
scheme was introduced in the fourth commit on 23 November 2013.
- These pairs were required to have cool inventor names, be easy to remember, be mildly funny on occasion, and be politically correct, though the heuristics for determining these were rather limited (all four conditions were fixed to
true
). These requirements were removed in 2016 (since the test actually did nothing).
Looking at the Docker CHANGELOG.md
, Docker 0.6.5 added the initial "Containers can now be named" with the first color_animal
scheme, 0.6.6 "Add[ed] some more colors and animals to increase the pool of generated names", and 0.7.0 added "Container naming: organize your containers by giving them memorable names" with the modern scheme.