Image List Formats
hangar mirror
command supports two different kinds of image list formats:
-
Default
format (available formirror/save/load/sync/sign/scan/archive
subcommands):Default format example# <REGISTRY>/<PROJECT>/<NAME>:<TAG>
docker.io/library/hello-world:latest
hello-world:latest
cnrancher/hangar:v1.9.0 -
Mirror
format (only available formirror
subcommand):Each line contains "[source image] [destination image] [TAG]", separated with white space
' '
:Mirror format example# <SOURCE> <DESTINATION> <TAG>
docker.io/hello-world private.io/library/mirrored-hello-world latest
nginx example.io/library/mirrored-nginx 1.22
mysql example.io/mysql/mirrored-mysql 8
quay.io/skopeo/stable example.io/library/mirrored-skopeo latestThe
mirror
format is used for rename the copied destination image name, and it allows to mirror multiple images to different registry servers and projects.You can use hangar convert-list command to convert the image list file from
Default
format intoMirror
format.
The line begin with //
or #
will be treated as comment.