Skip to main content

Copyright and other protections apply. Please see the accompanying LICENSE and CREDITS file(s) for rights and restrictions governing use of this software. All rights not expressly waived or licensed are reserved. If those files are missing or appear to be modified from their originals, then please contact the author before viewing or using this software in any capacity.

[Build Status] [Coverage Status]

Curious about integrating your project with the above services? Jeff Knupp (@jeffknupp) describes how.

dimgx - Docker IMaGe layer eXtractor (and flattener)

[v0.2.4 Version] [v0.2.4 Documentation] [v0.2.4 License] [v0.2.4 Supported Python Versions] [v0.2.4 Supported Python Implementations] [v0.2.4 Development Stage]

dimgx extracts and flattens Docker image layers. It is licensed under the MIT License. Source code is available on GitHub. See the docs for more information.

Examples

% dimgx -h
usage:
dimgx [options] [-l LAYER_SPEC] ... [-t PATH] IMAGE_SPEC
dimgx -h # for help

Docker IMaGe layer eXtractor (and flattener)
...
% dimgx nifty-box # show layers for "nifty-box[:latest]"
REPO TAG                IMAGE ID        PARENT ID       CREATED         LAYER SIZE      VIRTUAL SIZE
nifty-box               6667bbd4093c    82e5dcafc08c    18 hours ago    18.8 MB         144.0 MB
-                       82e5dcafc08c    cd5e80677a53    18 hours ago    1.8 kB          125.2 MB
-                       cd5e80677a53    df2a0347c9d0    18 hours ago    0 Bytes         125.2 MB
debian:jessie           df2a0347c9d0    39bb80489af7    21 hours ago    0 Bytes         125.2 MB
-                       39bb80489af7    -               21 hours ago    125.2 MB        125.2 MB
% dimgx -l df2a:82ef nifty-box # show only the second through fourth layers
IMAGE TAG               IMAGE ID        PARENT ID       CREATED         LAYER SIZE      VIRTUAL SIZE
-                       82e5dcafc08c    cd5e80677a53    18 hours ago    1.8 kB          125.2 MB
-                       cd5e80677a53    df2a0347c9d0    18 hours ago    0 Bytes         125.2 MB
debian:jessie           df2a0347c9d0    39bb80489af7    21 hours ago    0 Bytes         125.2 MB
% dimgx -l cd5e:6667 -t nifty.tar nifty-box # extract the third through fifth layers
% du -hs nifty.tar
 18M    nifty.tar

Issues

dimgx does what I want, so I’m just maintaining it at this point. If you find a bug, or want a feature, please file an issue (if it hasn’t already been filed). If you’re willing and able, consider contributing.

Metadata

Release files for dimgx 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dimgx 0.2.4
File Size Uploaded
dimgx-0.2.4.tar.gz 43.2 kB Details

Release files / dimgx-0.2.4.tar.gz

Download URL dimgx-0.2.4.tar.gz
Size 43.2 kB
Tags Source
SHA-256 checksum
How to use checksums
03a89421d80f943f57abcbd74e9b1cfc192b2fda2b1038085212b1230a89099b
BLAKE2b-256 checksum
How to use checksums
eb780cf7bdac46857364f487d43ed7b84628cb10fa2c2de34afbc21dd94b39d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.4 This release

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.5

1 release file

0.1.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page