Skip to content

create a diff between docker_img_A and docker_img_B, and generate a patch.通过比对两个docker镜像的layer,生成一个更新补丁,实现docker镜像的增量发版,无法发布整个镜像。

Notifications You must be signed in to change notification settings

AaronLiu666666/docker-patch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-patch

install

使用maven package,得到"docker-patch-1.0-SNAPSHOT.jar"

mvn package, you can get "docker-patch-1.0-SNAPSHOT.jar"

Usage

java -jar docker-patch-1.0-SNAPSHOT.jar -d /home/docker-img-v1.tar /home/docker-img-v2.tar

"-d": create a diff between docker-img-v1.tar(absolute path) and docker-img-v2.tar, and generate a patch.

java -jar docker-patch-1.0-SNAPSHOT.jar -m /home/docker-img-v1.tar /home/docker-patch-20220104235120.tar

"-m": you can generate docker-img-v2.tar from docker-img-v1.tar and a patch

About

create a diff between docker_img_A and docker_img_B, and generate a patch.通过比对两个docker镜像的layer,生成一个更新补丁,实现docker镜像的增量发版,无法发布整个镜像。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%