The new Docker CLI output broke how I updated my docker images in the morning. I used to run the following command:
docker images |grep -v REPOSITORY|awk '{print $1}'|xargs -L1 docker pull
But now they’ve changed the output to be formatted requiring the –format option, but this allows you to do pull of new images much easier.
docker images --format '{{.Repository}}' | xargs -L1 docker pull
I had never looked into the –format option previously, so you might have been able to do this previously. The output of commands is below. And if you’re using a good shell like fish, you just need to start typing the command and it shows the last version you ran, up arrow for previous versions, all without needing to type it all the way out every time.
