Source: www.commandlinefu.com

Update all Docker Images

Category: Docker

docker images --format "{{.Repository}}:{{.Tag}}" | grep ':latest' | xargs -L1 docker pull0 By: bakhru 2020-10-21 21:44:36 grepxargsdocker Can you do the same thing with only 14 characters?

Share Your CommandsClear disk space by retaining only currently running Docker containers and only currently required Docker images.Docker - delete unused imagesRemove all docker images to cleanup diskRemove all intermediate docker images after build

For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

Subscribe to the feed for: commandlinefu.com © 2018 Dan's Tools | FAQs | API | Widget | Privacy

Related Articles