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.

Files for flattenator, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size flattenator-0.0.1-py2.py3-none-any.whl (5.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size flattenator-0.0.1.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page