gcloud beta compute instances update-container
INSTANCE_NAME
[--container-image
=CONTAINER_IMAGE
] [--container-mount-disk
=[mode
=MODE
],[mount-path
=MOUNT-PATH
],[name
=NAME
],[partition
=PARTITION
]] [--container-privileged
] [--container-restart-policy
=POLICY
] [--container-stdin
] [--container-tty
] [--[no-]shielded-integrity-monitoring
] [--shielded-learn-integrity-policy
] [--[no-]shielded-secure-boot
] [--[no-]shielded-vtpm
] [--zone
=ZONE
] [--clear-container-args
| --container-arg
=CONTAINER_ARG
] [--clear-container-command
| --container-command
=CONTAINER_COMMAND
] [--container-env
=[KEY
=VALUE
, …,…] --container-env-file
=CONTAINER_ENV_FILE
--remove-container-env
=[KEY
,…]] [--container-mount-host-path
=[host-path
=HOSTPATH
,mount-path
=MOUNTPATH
[,mode
=MODE
],…] --container-mount-tmpfs
=[mount-path
=MOUNTPATH
,…] --remove-container-mounts
=[MOUNTPATH
[,MOUNTPATH
,…],…]] [GCLOUD_WIDE_FLAG …
]
(BETA)
gcloud beta compute instances update-container
updates Compute Engine virtual machines that runs a Docker image. For example:
gcloud beta compute instances update-container instance-1 --zone us-central1-a --container-image=gcr.io/google-containers/busybox
updates an instance called instance-1, in the us-central1-a zone, to run the 'busybox' image.
For more examples, refer to the EXAMPLES
section below.
gcloud beta compute instances update-container instance-1 --container-image=gcr.io/google-containers/busybox --container-command='echo "Hello world"'
To run the gcr.io/google-containers/busybox image in privileged mode, run:
gcloud beta compute instances update-container instance-1 --container-image=gcr.io/google-containers/busybox --container-privileged
INSTANCE_NAME
--container-image
=CONTAINER_IMAGE
Empty string is not allowed.
--container-mount-disk
=[mode
=MODE
],[mount-path
=MOUNT-PATH
],[name
=NAME
],[partition
=PARTITION
]
name
mount-path
partition
mode
rw
(read/write) or ro
(read-only). Defaults to rw
. Fails if the disk mode is ro
and volume mount mode is rw
.
--container-privileged
--container-restart-policy
=POLICY
POLICY
must be one of: never
, on-failure
, always
.
--container-stdin
STDIN
always open to the specified value.
--container-tty
--[no-]shielded-integrity-monitoring
gcloud compute instances update-container --shielded-learn-integrity-policy
. On Shielded VM instances, integrity monitoring is enabled by default. For information about how to modify Shielded VM options, see https://cloud.google.com/compute/docs/instances/modifying-shielded-vm. For information about monitoring integrity on Shielded VM instances, see https://cloud.google.com/compute/docs/instances/integrity-monitoring." Changes to this setting with the update command only take effect after stopping and starting the instance. Use --shielded-integrity-monitoring
to enable and --no-shielded-integrity-monitoring
to disable.
--shielded-learn-integrity-policy
--[no-]shielded-secure-boot
--shielded-secure-boot
to enable and --no-shielded-secure-boot
to disable.
--[no-]shielded-vtpm
--shielded-vtpm
to enable and --no-shielded-vtpm
to disable.
--zone
=ZONE
gcloud
attempts to identify the appropriate zone by searching for resources in your currently active project. If the zone cannot be determined, gcloud
prompts you for a selection with all available Google Cloud Platform zones.
To avoid prompting when this flag is omitted, the user can set the
property:compute/zone
gcloud config set compute/zone ZONE
A list of zones can be fetched by running:
gcloud compute zones list
To unset the property, run:
gcloud config unset compute/zone
Alternatively, the zone can be stored in the environment variable
.CLOUDSDK_COMPUTE_ZONE
--clear-container-args
Cannot be used in the same command with --container-arg
.
--container-arg
=CONTAINER_ARG
Cannot be used in the same command with --clear-container-arg
.
--clear-container-command
Cannot be used in the same command with --container-command
.
--container-command
=CONTAINER_COMMAND
Cannot be used in the same command with --clear-container-command
.
--container-env
=[KEY
=VALUE
, …,…]
KEY
with value VALUE
passed to container.
KEY
to the specified value.KEY
= VALUE
, if KEY
is not yet declared.KEY
is taken when KEY
is repeated more than once.Values, declared with --container-env
flag override those with the same KEY
from file, provided in --container-env-file
.
--container-env-file
=CONTAINER_ENV_FILE
--container-env
apply. Values, declared with --container-env
flag override those with the same KEY
from file.
File with environment variables declarations in format used by docker (almost). This means:
--remove-container-env
=[KEY
,…]
KEY
from container declaration Does nothing, if a variable is not present.
--container-mount-host-path
=[host-path
=HOSTPATH
,mount-path
=MOUNTPATH
[,mode
=MODE
],…]
mount-path
is not yet declared.mount-path
is declared. All parameters (host-path
, mount-path
, mode
) are completely replaced.host-path
mount-path
mode
Default: rw.
--container-mount-tmpfs
=[mount-path
=MOUNTPATH
,…]
mount-path
--remove-container-mounts
=[MOUNTPATH
[,MOUNTPATH
,…],…]
host-path
, tmpfs
, disk
) with mountPath: MOUNTPATH
from container declaration.
Does nothing, if a volume mount is not declared.
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
gcloud compute instances update-container
gcloud alpha compute instances update-container
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4