Wrapper shell scripts for docker image archive
- docker
- gzip (gunzip)
- pigz
- xz
- pxz
By default, script installed into ~/.local/bin/
.
You can set your favorite directory to PREFIX
git clone https://github.com/johejo/docker-image-archive-utils.git
cd docker-image-archive-utils/
make install
export PATH="$HOME/.local/bin:$PATH"
make uninstall
docker-save-image-to-archive -i alpine -t 3.8 -o alpine-3.8.tar.gz
docker-load-image-from-archive -f alpine-3.8.tar.gz
We tested the operation with several compressors (pigz
, xz
, pxz
) which has the -c
(--stdout
) option.
docker-save-image-to-archive -i alpine -t 3.8 -o alpine-3.8.tar.xz -z xz
docker-load-image-from-archive -f alpine-3.8.tar.xz -z unxz
MIT