diff --git a/commands/create.go b/commands/create.go index f6c26ded5a..91541259b0 100644 --- a/commands/create.go +++ b/commands/create.go @@ -59,9 +59,10 @@ var ( Value: &cli.StringSlice{}, }, cli.StringSliceFlag{ - Name: "engine-registry-mirror", - Usage: "Specify registry mirrors to use", - Value: &cli.StringSlice{}, + Name: "engine-registry-mirror", + Usage: "Specify registry mirrors to use", + Value: &cli.StringSlice{}, + EnvVar: "ENGINE_REGISTRY_MIRROR", }, cli.StringSliceFlag{ Name: "engine-label", diff --git a/docs/reference/create.md b/docs/reference/create.md index 2cd01f3461..f807f11c25 100644 --- a/docs/reference/create.md +++ b/docs/reference/create.md @@ -48,7 +48,7 @@ customize. --engine-install-url "https://get.docker.com" Custom URL to use for engine installation [$MACHINE_DOCKER_INSTALL_URL] --engine-opt [--engine-opt option --engine-opt option] Specify arbitrary flags to include with the created engine in the form flag=value --engine-insecure-registry [--engine-insecure-registry option --engine-insecure-registry option] Specify insecure registries to allow with the created engine - --engine-registry-mirror [--engine-registry-mirror option --engine-registry-mirror option] Specify registry mirrors to use + --engine-registry-mirror [--engine-registry-mirror option --engine-registry-mirror option] Specify registry mirrors to use [$ENGINE_REGISTRY_MIRROR] --engine-label [--engine-label option --engine-label option] Specify labels for the created engine --engine-storage-driver Specify a storage driver to use with the engine --engine-env [--engine-env option --engine-env option] Specify environment variables to set in the engine @@ -84,7 +84,7 @@ invoking the `create` help text. --engine-install-url "https://get.docker.com" Custom URL to use for engine installation [$MACHINE_DOCKER_INSTALL_URL] --engine-label [--engine-label option --engine-label option] Specify labels for the created engine --engine-opt [--engine-opt option --engine-opt option] Specify arbitrary flags to include with the created engine in the form flag=value - --engine-registry-mirror [--engine-registry-mirror option --engine-registry-mirror option] Specify registry mirrors to use + --engine-registry-mirror [--engine-registry-mirror option --engine-registry-mirror option] Specify registry mirrors to use [$ENGINE_REGISTRY_MIRROR] --engine-storage-driver Specify a storage driver to use with the engine --swarm Configure Machine with Swarm --swarm-addr addr to advertise for Swarm (default: detect and use the machine IP)