Public Repository

Last pushed: 2 years ago
Short Description
docker image squashing and publishing
Full Description

Usage:

_squash_image() {
    local src="$1" dst="$2"
    docker run --rm --privileged -it \
        -v /var/run/docker.sock:/var/run/docker.sock \
        -v /tmp:/tmp chnrxn/squasher bash squash ${src} ${dst} --publish
}

_squash_image <image> <repository> will squash the layers of image into a new image and publish it to repository.

Omit the --publish to keep the squashed image locally; it can be published later via
docker push dst/image

Source: chnrxn/squasher

Credits:

Docker Pull Command
Owner
chnrxn