Skip to main content

Flatten Docker images while preserving metadata

Project description

# Flattenator

Flattenator takes a layered Docker image as input, and replaces it with a flattened single-layer image as output, preserving metadata in so far as possible.

## Operation

Flattenator must be invoked from a machine with Python 3 (and click) installed, and docker must be in the PATH. Further, docker login must have already been run to allow the running user to push an image.

Flattenator will download the image requested, push that image with the tag exp_{tag}_layered (so as not to destroy the initial image), flatten the image, and then push the flattened image under both the original tag and exp_{tag}_flattened.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flattenator-0.0.2.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

flattenator-0.0.2-py2.py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page