rmoff's random ramblings
about talks

Pull new version of multiple Docker images

Published Dec 17, 2018 by in Docker at https://rmoff.net/2018/12/17/pull-new-version-of-multiple-docker-images/

Tiny little snippet this one. Given a list of images:

$ docker images|grep confluent
confluentinc/cp-enterprise-kafka                5.0.0               d0c5528d7f99        3 months ago        600MB
confluentinc/cp-kafka                           5.0.0               373a4e31e02e        3 months ago        558MB
confluentinc/cp-zookeeper                       5.0.0               3cab14034c43        3 months ago        558MB
confluentinc/cp-ksql-server                     5.0.0               691bc3c1991f        4 months ago        493MB
confluentinc/cp-ksql-cli                        5.0.0               e521f3e787d6        4 months ago        488MB
…

Now there’s a new version available, and you want to pull down all the latest ones for it:

docker images|grep "^confluentinc"|awk '{print $1}'|xargs -Ifoo docker pull foo:5.1.0

Magic!

$ docker images|grep confluent|grep 5.1
confluentinc/cp-ksql-server                     5.1.0               db9d3eaf4624        2 days ago          503MB
confluentinc/cp-ksql-cli                        5.1.0               d8aab59c51d2        2 days ago          499MB
confluentinc/ksql-examples                      5.1.0               61b943a67fa8        2 days ago          491MB
confluentinc/cp-enterprise-kafka                5.1.0               9a27f2588978        2 days ago          619MB
…

Robin Moffatt

Robin Moffatt works on the DevRel team at Confluent. He likes writing about himself in the third person, eating good breakfasts, and drinking good beer.

Story logo

© 2025