Docker Update Images

Linux-Bytes

dockercommand lineone-linersshellgrep

63 Words

2019-11-26 19:00 -0500


A great way to update docker images is to use this one-liner. Since, docker does not have a command; this command will update images that you have already pulled. The only way is to pull all images again using docker pull 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