2024-03-06 09:53:10 +00:00
|
|
|
NAME
|
|
|
|
|
gcloud artifacts docker upgrade - commands to support Container Registry to
|
|
|
|
|
Artifact Registry upgrade
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
|
gcloud artifacts docker upgrade COMMAND [GCLOUD_WIDE_FLAG ...]
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
|
To print an equivalent Artifact Registry IAM policy for
|
|
|
|
|
'gcr.io/my-project':
|
|
|
|
|
|
|
|
|
|
$ gcloud artifacts docker upgrade print-iam-policy gcr.io \
|
|
|
|
|
--project=my-project
|
|
|
|
|
|
2024-03-13 09:56:22 +00:00
|
|
|
To migrate a project from Container Registry to Artifact Registry using
|
|
|
|
|
gcr.io repos:
|
|
|
|
|
|
|
|
|
|
$ gcloud artifacts docker upgrade migrate --projects=my-project
|
|
|
|
|
|
|
|
|
|
To migrate a project from Container Registry to Artifact Registry using
|
|
|
|
|
pkg.dev repos:
|
|
|
|
|
|
|
|
|
|
$ gcloud artifacts docker upgrade migrate \
|
|
|
|
|
--from-gcr-io=gcr.io/from-project \
|
|
|
|
|
--to-pkg-dev=to-project/to-repo
|
|
|
|
|
|
2024-03-06 09:53:10 +00:00
|
|
|
GCLOUD WIDE FLAGS
|
|
|
|
|
These flags are available to all commands: --help.
|
|
|
|
|
|
|
|
|
|
Run $ gcloud help for details.
|
|
|
|
|
|
2024-03-13 09:56:22 +00:00
|
|
|
COMMANDS
|
|
|
|
|
COMMAND is one of the following:
|
|
|
|
|
|
|
|
|
|
migrate
|
|
|
|
|
Migrate projects from Container Registry to Artifact Registry.
|
|
|
|
|
|
2024-03-06 09:53:10 +00:00
|
|
|
NOTES
|
|
|
|
|
This variant is also available:
|
|
|
|
|
|
|
|
|
|
$ gcloud beta artifacts docker upgrade
|
|
|
|
|
|