When you create an instance on google compute engine there is an option to "Deploy a container image to this VM instance", which if you select asks for a container image
In the box for the container image it says "for example, gcr.io/google-containers/busybox" and clicking on the question mark next to the words "Container image" brings up "Name of a public image on any registry, or a private image hosted on Google Container Registry."
From this I infer that I can deploy an image directly from docker hub without needing to first upload it to the google container repository. However, I am having trouble with how I am supposed to direct the instance to the desired image.
For example if the image is username/repo:tag, I have tried putting username/repo
or username/repo:tag
as the container image, but when I load up the instance I am not in the container and the image isn't even listed on the docker images -a
What address should I be using?
username/repo:tag
command should be able to link your image to your VM instance. Either way, there are other ways by which you can associate docker images into your VM, you can try those. - Kanishk Kumar Gupta