Docker: Update all the images
If you want to pull and update all the images you have so far downloaded (and are still present on your system) using docker you can execute the following command:
for IMAGE in $( LANG=en docker image ls -a --format table | grep -v -E "^REPOSITORY" | grep -v '<none>' | awk '{print $1,$2}' | sed -e 's/ /:/g' );do docker pull $IMAGEdone
After that you can remove unused images with the following command:
docker image prune -f
And, if you want, you might also clear the cache of intermediate layers used in docker build processes with a couple of simple commands:
docker builder prune -fdocker buildx prune -f