• Skip to primary navigation
  • Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives
  • Contact

Docker to GCR

by Ulysses · Jan 12, 2020

Here’s a couple of steps to move a Docker image to the Google Container Registry.

Create a container image.

docker build -t gcr.io/${PROJECT_ID}/my-app:v1 .

docker build -t gcr.io/${PROJECT_ID}/my-app:v1 .

Push image to GCR.

docker push gcr.io/[PROJECT-ID]/[IMAGE]

docker push gcr.io/[PROJECT-ID]/[IMAGE]

Filed Under: Cloud Tagged With: build, docker, gcp, push

Subscribe

Copyright © 2012–2021

  • Cloud
  • Linux
  • Git