Ole
Ole

Reputation: 47088

Docker abbreviation for --name run option

Is there an abbreviated option for --name? For example the following works:

docker run -it --name container1 busybox

However this does not:

docker run -it -n container1 busybox

TIA, Ole

Upvotes: 2

Views: 1657

Answers (1)

Armin Braun
Armin Braun

Reputation: 3683

Sorry for the short answer, but all arguments are neatly documented here: https://docs.docker.com/engine/reference/commandline/run/

Excerpt:

 -m, --memory=""               Memory limit
 --name=""                     Assign a name to the container

As you can see, clearly no shorthand for --name defined :)

Upvotes: 3

Related Questions