Philocode – Telegram
Philocode
Photo
How Docker generates random container names?

Docker will assign a randomly generated name to each container, if you don't provide a name while creating a container from an image. Currently I have a "peaceful_archimedes" and a "determined_hellman" on my machine!

1. The package "namesgenerator" is responsible for doing this:
https://lnkd.in/emJPDHpa
2. As you can see, the generated name consists of an adjective (left), and an underscore, and a name (right). The adjective and the name would be chosen from two arrays randomly.
3. The package "is officially frozen - no new additions will be accepted".
4. "At some future time, this may be replaced with something that sparks less controversy, but for now it will remain as-is."
5. Someone made a pull request about two years ago to remove Valentina Tereshkova from the names array, but he failed:
https://lnkd.in/eXscbCK5
6. "Steve Wozniak is not boring", I heartily laughed at this jode (joke-code, my invention), added by Solomon Hykes:
https://lnkd.in/evUuNa4i

Thanks to Soroush Moosapour for mentioning this package, so that I had the pleasure of reading the code.
👍3
👍2
اگه توی MySQL از تایپ timestamp استفاده کنید، نمی‌تونید تاریخ‌های قدیمی‌تر از 1970 و تاریخ‌های بعد 2038 رو ذخیره کنید. 👽
👍3🤔1🤩1