我使用以下命令删除了一个实例:
gcloud compute instances delete --keep-disks jupyter-test现在我想用我保留的磁盘创建一个实例。
一开始,我使用:
gcloud compute instances create-with-container jupyter-test --container-image jupyter/datascience-notebook我收到以下错误消息:
The resource 'projects/PROJECT/zones/europe-west1-b/disks/jupyter-test' already exists然后我试着:
gcloud compute instances create-with-container jupyter-test --disk name=jupyter-test --container-image jupyter/datascience-notebook但是我得到了相同的错误信息。我知道它已经存在了,这就是为什么我想再次使用它!
发布于 2018-11-28 04:54:24
我尝试重现您的问题,并发现在您的命令标志--磁盘缺少一个‘等于’。此外,我需要以beta的身份运行该命令才能使其工作。
以下命令起作用:
gcloud beta计算实例名称create-with-container jupyter-test --disk= NAME =NAME--container-image IMAGE
https://stackoverflow.com/questions/53498180
复制相似问题