google-app-engine - 谷歌计算引擎 : reset doesn't restore to original image state

标签 google-app-engine google-compute-engine reset

以下文档建议在 google compute engine 上重置虚拟机将使虚拟机恢复到其原始状态

Performing a reset on your instance is similar to pressing the reset button on your computer, which wipes the memory contents of the machine and resets the virtual machine to its initial state.

https://cloud.google.com/compute/docs/instances/restarting-an-instance

然而,在按照本文档通过 gui 和终端上的 gcloud 重置后,我的文件仍然出现在 VM 上。

我是否误解了此功能?我做错了什么吗?

谢谢!

最佳答案

您应该像重启物理机一样考虑重启实例。您安装的所有程序和修改/创建的文件都将保留(除了/tmp 目录中的文件,正如 snakecharmerb 指出的那样)。

如果您想将一个实例完全重置为原始的、未修改的状态,最有效的方法是简单地创建一个具有相同规范的新实例(即通过选择相同的源图像和机器设置),然后删除旧的/修改过的。

如果您修改实例并希望保存实例/磁盘的状态以便可以恢复到该状态,则可以创建实例快照。这允许您保存实例启动磁盘的快照,以便您可以在以后创建相同的实例。有关这方面的更多信息,请参见 here .

关于google-app-engine - 谷歌计算引擎 : reset doesn't restore to original image state,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47577815/

相关文章:

google-cloud-platform - GKE 使用什么服务帐号访问 GCR

google-cloud-storage - 将 Google Cloud Storage Bucket 挂载到实例

python - 为什么 Google Compute Engine 中的多处理不使用 100% CPU?

google-app-engine - GAE Go - "This request caused a new process to be started for your application..."

asp.net - 为什么 HTML 标准重置按钮不能重置 asp.net 表单的值?

java - Request.getParameter() 仅将 "+"替换为 ""

google-app-engine - 可以在 Mountain Lion 中使用 GAE over LAN 测试网站吗?

基于 Java 的 Atom/RSS 库,可在 Google App Engine 中运行

java - 增加我在 Google App Engine 上所有应用程序 ID 的电子邮件配额

java - 10 分钟后连接重置 java