Download docker image and push to GCP Artifact Registry Repository

· 1 min read

First pull the docker image you want to download the

docker pull cooervo/server-with-args:v1.0 

# Specify platform architecture 
docker pull \
  --platform linux/amd64 \
  cooervo/server-with-args:v1.0

Then tag it to name of your artifact registry

docker tag \
  docker.io/cooervo/server-with-args:v1.0 \
  us-docker.pkg.dev/<GCP_PRoJECT>/<REGISTRY>/status-server:v0.0.1

In case you haven't done it add the registry to your docker auth list:

gcloud auth configure-docker us-docker.pkg.dev

Finally push it

docker push us-docker.pkg.dev/<GCP_PROJECT>/<REGISTRY>/status-server:v0.0.1