Skip to content

Support pulling all tagged images in repository #2724

@cgtexmex

Description

@cgtexmex

Docker provides the ability to pull all tagged images in a repository:

Usage:  docker pull [OPTIONS] NAME[:TAG|@DIGEST]

Pull an image or a repository from a registry

  -a, --all-tags                  Download all tagged images in the repository
  --disable-content-trust=true    Skip image verification
  --help                          Print usage

vic currently doesn't support and when executed against vic it will only attempt to download the latest tagged image in the repo. For example:

Only nginx latest exists

vic images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
nginx               latest              9993911fe164        25 hours ago        181.4 MB

Now pull -a busybox

vic pull -a busybox
Pulling from library/busybox
56bec22e3559: Pull complete
a3ed95caeb02: Extracting [==================================================>]     32 B/32 B
Digest: sha256:98a0bd48d22ff96ca23bfda2fe1cf72034ea803bd79e64a5a5f274aca0f9c51c
Status: Downloaded newer image for library/busybox:latest
a3ed95caeb02: Pull complete

vic only attempts to pull the latest tagged image and states it completed successfully, but busybox doesn't appear in images:

 vic images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
nginx               latest              9993911fe164        26 hours ago        181.4 MB

Until we support this feature we should tell the user it's not supported via a returned error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions