Isolate partial layers from a Docker image
Go to file
2024-08-26 21:43:07 +00:00
.idea Big bang 2024-07-30 01:46:59 -04:00
lib Big bang 2024-07-30 01:46:59 -04:00
src Update 'src/isolate.bash' 2024-08-26 21:43:07 +00:00
.gitmodules Big bang 2024-07-30 01:46:59 -04:00
dlt.bash Update README 2024-07-30 09:14:22 -04:00
Dockerfile Big bang 2024-07-30 01:46:59 -04:00
README.md Update README 2024-07-30 09:14:46 -04:00

dlt - Docker Layer Tool

Helpers for performing advanced manipulations of Docker image layers.

Isolate

isolate [from image] [to image] [--output=path] [--as=image name] [--no-base]

Given an image [to image] that is based on [from image], extract (or... isolate) the files that changed ONLY since the [from image] and output it as a .tar file.

Optionally, using the --as flag, create a new image based on [from image] that has a single additional layer with all the filesystem changes.

This command may be useful if you want to flatten an image but still make use of upstream caching of your base image layers. If the --no-base flag is specified, the resulting image will contain only the changed files, excluding the base image.

Example:

./dlt.bash isolate ubuntu:22.04 user/myapp:latest --output=changes.tar --as user/myapp:flattened