ReproNim / reproman

ReproMan (AKA NICEMAN, AKA ReproNim TRD3)
https://reproman.readthedocs.io
Other
24 stars 14 forks source link

create: Default to :latest tag when pulling Docker image #483

Closed kyleam closed 4 years ago

kyleam commented 4 years ago

reproman create callers that are familiar with the command-line interface to docker pull would reasonably expect that, if they omit a tag, the default :latest will be used. Instead we download all tags:

$ docker images busybox
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

$ reproman create bb -t docker-container -b image=busybox >notag-out 2>&1

$ wc -l notag-out                      
84 notag-out                                    

$ grep -c "Download complete" notag-out
7                                               

$ tail -n3 notag-out                   
2019-11-05 15:14:27,259 [INFO] Downloading [====================>                              ]  924.4kB/2.202MB 
ERROR: 
Interrupted by user while doing magic

$ docker images busybox
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
busybox             1-musl              ff773d70e0ec        5 days ago          1.44MB
busybox             1-glibc             7636bfb4b772        5 days ago          5.2MB
busybox             1-uclibc            020584afccce        5 days ago          1.22MB
busybox             1-ubuntu            d34ea343a882        3 years ago         4.35MB
busybox             1.21-ubuntu         d34ea343a882        3 years ago         4.35MB
busybox             1.21.0-ubuntu       d34ea343a882        3 years ago         4.35MB
busybox             1.23                a84c36ecc374        4 years ago         1.1MB