How to update all docker images

Docker does not have a command to update images that you have already pulled. The only way is to pull all images again using docker pull <image> command. This simple one-liner can help you update all images at once.

docker images |grep -v REPOSITORY|awk '{print $1}'|xargs -L1 docker pull  

Like it? Click here to Tweet your feedback

Swapnil Jain

RHCA Level X, RHCI ♦ Solution Architect ♦ DevOps Trainer & Consultant