Skip to content

Docker pull image:tag should pull all "aliases" #8141

@thaJeztah

Description

@thaJeztah

Running Docker on a small VPS, I only pull a limited set of (base)images to save disk space. If only the latest ubuntu image is required, I do docker pull ubuntu:latest in stead of docker pull ubuntu.

Currently, doing docker pull ubuntu:latest will do exactly that; download ubuntu:latest, but not the "aliases" for the same image (ubuntu:14.04, ubuntu:14.04.1, ubuntu:trusty)

This is particularly risky when updating the local image-cache, because only ubuntu:latest will be updated, but not the other aliases, causing (for example) ubuntu:latest and ubuntu:14.04 to no longer point to the same image. To update all aliases for an image, the user has to to manually look up all "aliases" and perform docker pull for each tag.

docker pull should be smart enough to look up all "aliases" for an image and make sure that they are all pulled/downloaded or updated at the same time without additional user interaction.

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