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:latesthello-world:latestcnrancher/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 latestnginx example.io/library/mirrored-nginx 1.22mysql example.io/mysql/mirrored-mysql 8quay.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.