usage: docker-squash [-h] [-v] [--version] [-f FROM_LAYER] [-t TAG] [-m MESSAGE] [-c] [--tmp-dir TMP_DIR] [--output-path OUTPUT_PATH] [--load-image [LOAD_IMAGE]] image Docker layer squashing tool positional arguments: image Image to be squashed options: -h, --help show this help message and exit -v, --verbose Verbose output --version Show version and exit -f, --from-layer FROM_LAYER Number of layers to squash or ID of the layer (or image ID or image name) to squash from. In case the provided value is an integer, specified number of layers will be squashed. Every layer in the image will be squashed if the parameter is not provided. -t, --tag TAG Specify the tag to be used for the new image. If not specified no tag will be applied -m, --message MESSAGE Specify a commit message (comment) for the new image. -c, --cleanup Remove source image from Docker after squashing --tmp-dir TMP_DIR Temporary directory to be created and used. This will NOT be deleted afterwards for easier debugging. --output-path OUTPUT_PATH Path where the image may be stored after squashing. --load-image [LOAD_IMAGE] Whether to load the image into Docker daemon after squashing