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.
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:latestin stead ofdocker pull ubuntu.Currently, doing
docker pull ubuntu:latestwill do exactly that; downloadubuntu: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:latestwill be updated, but not the other aliases, causing (for example)ubuntu:latestandubuntu:14.04to 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 performdocker pullfor each tag.docker pullshould 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.