Skip to content

docker-archive: multiple tag support #447

@cyphar

Description

@cyphar

At the moment if you want to operate on a docker-archive: it will only create a single RepoTags entry. However, Docker image tarballs are quite different to other images in that when you import them into docker you have no way of changing their name -- so if you wanted to import a single image under multiple names you would have to skopeo copy the image to different archives. However the format of docker load supports more than one entry in RepoTags.

The idea would be to add the ability to have "alternative names" in SystemContext (or something similar) for the ImageDestination. This would result in having multiple tags created referencing the image we've decided as our destination. Then we could plumb through an option like --dst-additional-tags to skopeo. Ultimately this could be added to all transports, though I'm not sure whether it would work very well with all of them.

WDYT?

/cc @vrothberg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions