Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including docker-names with all npm packages installed. Try it out:

var dockerNames = require("docker-names")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

docker-names v1.1.1

Generates names identical to dockers i.e. [adjective]_[surname]


Docker Names generates semi-random, easy to remember names similar to how docker names its containers. For example, desperate_fermi, cranky_heyrovsky or tender_mahavira.

Or as seen from the docker client container list: Docker container list

Current Build Status: Build Status


Usage is very simple as this module only exports one method:

var dockerNames = require('docker-names');
$ angry_nobel

Additionally, per dockers specification they have a "retry" counter that appends a random* number if set to true or a number greater than 0. For example:

$ jolly_mclean3

$ backstabbing_roentgen5

* This uses 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.

Word Lists

This module exports the full docker name lists as two arrays.

// This contains all adjectives i.e. "left words"
dockerNames.adjectives = Array('admiring', 'adoring'...);

// This contains all surnames to use as "right words"
dockerNames.surnames = Array('albattani', 'allen' ...);
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free