Last active
May 3, 2021 20:17
-
-
Save magixx/044f32ea884f4d3f4f723263408f7528 to your computer and use it in GitHub Desktop.
Docker Container Names in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
https://github.com/docker/docker/blob/master/pkg/namesgenerator/names-generator.go | |
""" | |
from random import choice | |
ADJECTIVES=["admiring","adoring","affectionate","agitated","amazing","angry","awesome","blissful","boring","brave","clever","cocky","compassionate","competent","condescending","confident","cranky","dazzling","determined","distracted","dreamy","eager","ecstatic","elastic","elated","elegant","eloquent","epic","fervent","festive","flamboyant","focused","friendly","frosty","gallant","gifted","goofy","gracious","happy","hardcore","heuristic","hopeful","hungry","infallible","inspiring","jolly","jovial","keen","kickass","kind","laughing","loving","lucid","mystifying","modest","musing","naughty","nervous","nifty","nostalgic","objective","optimistic","peaceful","pedantic","pensive","practical","priceless","quirky","quizzical","relaxed","reverent","romantic","sad","serene","sharp","silly","sleepy","stoic","stupefied","suspicious","tender","thirsty","trusting","unruffled","upbeat","vibrant","vigilant","wizardly","wonderful","xenodochial","youthful","zealous","zen"] | |
PEOPLE=["albattani","allen","almeida","agnesi","archimedes","ardinghelli","aryabhata","austin","babbage","banach","bardeen","bartik","bassi","beaver","bell","bhabha","bhaskara","blackwell","bohr","booth","borg","bose","boyd","brahmagupta","brattain","brown","carson","chandrasekhar","shannon","clarke","colden","cori","cray","curran","curie","darwin","davinci","dijkstra","dubinsky","easley","edison","einstein","elion","engelbart","euclid","euler","fermat","fermi","feynman","franklin","galileo","gates","goldberg","goldstine","goldwasser","golick","goodall","haibt","hamilton","hawking","heisenberg","heyrovsky","hodgkin","hoover","hopper","hugle","hypatia","jang","jennings","jepsen","joliot","jones","kalam","kare","keller","khorana","kilby","kirch","knuth","kowalevski","lalande","lamarr","lamport","leakey","leavitt","lewin","lichterman","liskov","lovelace","lumiere","mahavira","mayer","mccarthy","mcclintock","mclean","mcnulty","meitner","meninsky","mestorf","minsky","mirzakhani","morse","murdock","newton","nightingale","nobel","noether","northcutt","noyce","panini","pare","pasteur","payne","perlman","pike","poincare","poitras","ptolemy","raman","ramanujan","ride","montalcini","ritchie","roentgen","rosalind","saha","sammet","shaw","shirley","shockley","sinoussi","snyder","spence","stallman","stonebraker","swanson","swartz","swirles","tesla","thompson","torvalds","turing","varahamihira","visvesvaraya","volhard","wescoff","wiles","williams","wilson","wing","wozniak","wright","yalow","yonath"] | |
def get_random_name(seperator='_'): | |
return "{}{}{}".format(choice(ADJECTIVES),seperator,choice(PEOPLE)) | |
# Created by pyminifier (https://github.com/liftoff/pyminifier) |
I happened to have my container named randomly "a negative adjective" at a time where there was some discrepancies with my team mates who manage the docker code and without knowing about this list took it personally. I suggest the negative or derogatory adjectives be taken out this list
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello, each time when I start the OS in Docker, getting generated new image with some name on it like Wizardly Battain. is this common? Goole leads to here.
I'm new to docker.