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
…