Skip to main content
While you may pull an image directly from Docker Hub, here are our legacy instructions for pushing a Docker image to GCP Artifact Registry:
  1. Create a repository on GCP Artifact Registry by clicking the + CREATE REPOSITORY button.
    • Fill in the Name
    • Choose Docker as the Format
    • Choose any Location type
    • Choose any Encryption
    • Click CREATE
  2. Click on the newly created repository (e.g. mage-docker).
  3. Near the top of the page, click the link SETUP INSTRUCTIONS or read these instructions to set up authentication for Docker.
    • Run the following command in your terminal:
    • An example command could look like this:
  4. Pull the Mage Docker image:
    • If your local workstation is using macOS and a silicon chip (e.g. M1, M2, etc), then run this command instead:
  5. Tag the pulled Mage docker image or use a previously tagged Docker image you built when following this CI/CD guide:
    • Sample commands if using vanilla Mage Docker image:
      • An example command could look like this:
    • Sample commands if using previously tagged a custom Docker image using the tag mageprod:latest:
      • An example command could look like this if you previously tagged your custom Docker image with the tag mageprod:latest:
  6. Push the local Docker image to GCP Artifact Registry:
    • An example command could look like this: