DEV Community

Discussion on: Update all docker images already pulled.

Collapse
 
imjoseangel profile image
Jose Angel Munoz

@goffity the following:

docker images | grep -v REPOSITORY | awk 'BEGIN{OFS=":"} {print $1,$2}'
Enter fullscreen mode Exit fullscreen mode

can be easily done with:

docker images --format "{{.Repository}}:{{.Tag}}"
Enter fullscreen mode Exit fullscreen mode

So the final command would be:

docker images --format "{{.Repository}}:{{.Tag}}" | xargs -L1 docker pull
Enter fullscreen mode Exit fullscreen mode
Collapse
 
goffity profile image
Goffity Corleone

awesome ()/