Skip to content

Instantly share code, notes, and snippets.

@breun
Last active October 21, 2022 11:22
Show Gist options
  • Save breun/74995a48778b6402272e125ea49414af to your computer and use it in GitHub Desktop.
Save breun/74995a48778b6402272e125ea49414af to your computer and use it in GitHub Desktop.
Repulls all your Docker images, updating them to the latest state
# Get output from 'docker images', skip the header line, print '{image_name}:{image_tag}' and feed each image as an argument to 'docker pull'
docker images | tail -n +2 | awk '{ print $1":"$2 }' | xargs -L 1 docker pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment