Skip to content

frost19k/BUDI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BUDI 🐳

Batch Update Docker Images

Usecase?

I have a number of Docker Images that I like to keep updated. This is a simple script which checks for updates with registry-1.docker.io/v2 & issues a docker pull if an update is found.

Installation

  1. Clone the repo
❯ git clone https://github.com/frost19k/BUDI
  1. Install BUDI
cd BUDI/
❯ pip3 install .

Usage

❯ budi -f imageList.txt
Parameter Description
-f --file Input file containing docker image names (required)
-t --threads Number of concurrent threads (default: 2)
-d --delete Delete existing image after update (default: false)
-F --force Froce remove image after update (default: false)
-v --version Display version information
  • BUDI accepts a simple text file as input
  • Each line must be an docker image of the form repo/name:tag
  • repo & tag are optional
  • For e.g.
❯ cat imageList.txt
bitnami/wordpress:6-debian-11
golang:1.17-alpine
kalilinux/kali-last-release
nginx:stable-alpine-perl

Thanks

Special thanks to @gabrieldemarmiesse for python-on-whales which allowed me to completely avoid subprocess

Also, thanks to @BMitch on StackOver flow for this.

About

Batch Update Docker Images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages