How to save a compute engine VM-instance setup in Google Cloud Platform?

756 views Asked by At

I have created a compute engine VM-instance in Google Cloud Platform. Then I have installed go using the standard procedure downloading it from https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz. Everything worked properly and I was able to run go application. However, after closing the instance when I reopened it, it says go is not installed. The message is following.

-bash: go: command not found

How can I save the instance setup?

1

There are 1 answers

0
ZAky On

Creating, Deleting, and Deprecating Custom Images

You can create custom images of boot disks and use these images to create new instances. This is ideal for situations where you have created and modified a persistent boot disk to a certain state and need to save that state to create new instances.

I think you should also consider using Docker containers.

Pushing and pulling images

Container-optimized VM images