mheers / docker-image-squash

A simple tool to to squash all layers of a docker image into a single tar file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-image-squash

A simple tool to to squash all layers of a docker image into a single tar file.

Installation

Binary

go install github.com/mheers/docker-image-squash@latest

Usage

Binary

docker-image-squash <image> <output.tar>

Docker

docker run --rm -v $(pwd):/output mheers/docker-image-squash <image> <output.tar>

TODO

  • remove dependency of docker

Alternatives

Why docker-image-squash?

  • no need to install docker
  • no need to install python
  • no need to run as root

About

A simple tool to to squash all layers of a docker image into a single tar file

License:Apache License 2.0


Languages

Language:Go 86.9%Language:Shell 9.7%Language:Dockerfile 2.2%Language:Makefile 1.3%