gcloud compute instances detach-disk
NAME
--device-name
DEVICE_NAME
| --disk
DISK
]--format
FORMAT
]--help
]--project
PROJECT_ID
]--quiet
, -q
]--zone
ZONE
]-h
]gcloud compute instances detach-disk
is used to detach disks from virtual machines.$ sudo umount /dev/disk/by-id/google-DEVICE_NAME
NAME
--device-name
DEVICE_NAME
--disk
flag.
--disk
DISK
--device-name
flag.
--zone
ZONE
compute/zone
property:$ gcloud config set compute/zone ZONE
$ gcloud compute zones list
$ gcloud config unset compute/zone
CLOUDSDK_COMPUTE_ZONE
.--format
FORMAT
json
, text
, yaml
.
--help
--project
PROJECT_ID
--quiet
, -q
-h
compute
component. See
installing components
if it is not installed.