Image List Formats
hangar mirror command supports two different kinds of image list formats:
-
Defaultformat (available formirror/save/load/syncsubcommands):Default format example# <REGISTRY>/<PROJECT>/<NAME>:<TAG>
docker.io/library/hello-world:latest
hello-world:latest
cnrancher/hangar:v1.7.0 -
Mirrorformat (only available formirrorsubcommand):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
mirrorformat 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
Defaultformat intoMirrorformat.
The line begin with // or # will be treated as comment.