Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to push existing docker image to google app-engine

I am currently using the app engine maven plugin, which seems to trigger a Google cloud build to build a docker image and then push to app engine.

Is it possible for me to just push an exiting docker image from docker hub or google container registry?

like image 729
Todoy Avatar asked Nov 28 '18 16:11

Todoy


People also ask

How do I push Docker images to GCR?

Tag image with registry name This configures the Docker push command to push the image to a specific location. The registry name format is: gcr.io/[PROJECT-ID]/[IMAGE] where [PROJECT-ID] is your Google Cloud Console project ID and [IMAGE] is your image's name. Now, you're ready to push your image to GCR!

Does Google App Engine support containers?

Features. Customizable infrastructure - App Engine flexible environment instances are Compute Engine virtual machines, which means that you can take advantage of custom libraries, use SSH for debugging, and deploy your own Docker containers.


1 Answers

You can deploy to App Engine using a specific Docker image hosted on Google Container Registry by using the --image-url flag like this:

gcloud app deploy --image-url=[HOSTNAME]/[PROJECT-ID]/[IMAGE]

See doc here for more info on the hostname options.

like image 190
LundinCast Avatar answered Oct 08 '22 14:10

LundinCast