Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
docker 镜像批量更新
for i in $( docker images --format "{{.Repository}}:{{.Tag}}" )
do
docker pull $i
done
# or
# docker images --format "{{.Repository}}:{{.Tag}}" | xargs -L1 docker pull
docker image prune -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment