Update all docker images
Docker does not have a command to update your images to latest version that you have already pulled in your system by default. Sometimes, we want to update image to latest version because of bugs or vulnerabilities. This action is similar to apt update && apt upgrade
in debian-based system.
The following one-line command can help you update all images at with its tags.
docker images |tail -n +2 |awk '{t=$1":"$2; print t}' | xargs -L1 docker pull