If no name is provided by the user while creating/running a Docker container, Docker automatically assigns the container a name.
examples:
adoring_galileo
amazing_kalam
hardcore_kare
Also you can see it from docker client list command:
this module exports only one method:
import { dockerNames } from 'docker-names-ts';
console.log(dockerNames.getRandomName());
$ amazing_kalamAdditionally, getRandomName accepts an optional parameter length which is the
length of the random characters to be generated.
console.log(dockerNames.getRandomName(10));
$ amazing_kalam_skd23fsdkjNote: you can leave an optional parameter true to generate a random name with a 6 length.
* As you can see using Math.random which means its not very random. These names should never be used as any sort of unique id.
The names are mostly applicable for small lists of ephemeral objects that you want to have easy to remember identifiers for.
Contributions are always welcome!
