Updating, deprecating, and deleting container image products

Updating images in Container Registry

Following the same process that you performed when you pushed your image to your Container Registry staging repository, add your new image to Container Registry with the proper tag.

  1. Build the image that you want to push to your Container Registry staging repository.
  2. Tag your image using Docker with the tag of the existing version you'd like to update (or with a new tag if you want the image under a new version):

    docker tag {image_name} {staging_repo_path}:{tag}

    For example, docker tag test-image gcr.io/testpartner/testsolution:latest

  3. Push your image using gcloud:

    gcloud docker push {staging_repo_path}:{tag}

  4. Repeat for any additional tags you'd like to add or update to your staging repository. Note that a single image can have multiple tags.

    Remember that pushing an image to your staging repository doesn't automatically make it visible to users (even if you use a tag that is already associated with a version); this only happens after you update the version in Producer Portal and your product is published.

You can manage tags directly (add, edit, or delete) on images already in your Container Registry staging repository using the Container Registry UI.

Updating your products in Producer Portal

  1. Open Producer Portal in the Google Cloud console:

    https://console.cloud.google.com/producer-portal?project=YOUR_PUBLIC_PROJECT_ID
    

    Replace YOUR_PUBLIC_PROJECT_ID with the ID for the public project that you created for Cloud Marketplace—for example, my-organization-public.

  2. In the list of products, click the product ID.

  3. On the Overview page of your product, go to the Container images section, and click Edit.

  4. By Proposed Releases, click Edit. It might take a few seconds to read the repository and load your tags.

  5. Click the release that you want to update.

  6. In Display tag, select the version that uses the corresponding digest to the image you updated in your staging Container Registry repository.

  7. After you've updated all the information for the release, click Done.

  8. When you're done updating supported releases to your product, click Save and Validate.

  9. Click Submit to submit the container images for review.

  10. After all reviews have been approved, you can publish and launch the product by opening the Overview page of your product and clicking Publish.

Removing versions

When you remove a release from your product, it is immediately removed from the product details page when the product is published. However, removing a release does not remove the images published to the public Container Registry.

  1. Open Producer Portal in the Google Cloud console:

    https://console.cloud.google.com/producer-portal?project=YOUR_PUBLIC_PROJECT_ID
    

    Replace YOUR_PUBLIC_PROJECT_ID with the ID for the public project that you created for Cloud Marketplace—for example, my-organization-public.

  2. In the list of products, click the product ID.

  3. On the Overview page of your product, go to the Container images section, and click Edit.

  4. By Proposed Releases, click Edit. It might take a few seconds to read the repository and load your tags.

  5. Highlight the release that you want to remove.

  6. Click to remove the version.

  7. Click Done.

  8. When you're done removing releases to your product, click Save and Validate.

  9. Click Submit to submit the container images for review.

  10. After all reviews have been approved, you can publish and launch the product by opening the Overview page of your product, and clicking Publish.