Skip to main content

Utility to mount Docker images locally without requiring container creation

Project description

docker-mounter

Utility to mount Docker images locally without requiring container creation. This is useful for analysing contents of Docker images from within the host operating system without incurring the overhead of container creation.

This tool relies on some potentially unstable docker implementation details, and may break in future Docker versions!

Compatibility

Due to use of overlay2, tool is only compatible with Linux 3.19+.

It has currently only been tested with Docker version 27.3.1, build ce12230.

Usage

Usage: docker-mount [OPTIONS] IMAGE

╭─ Arguments ─────────────────────────────────────────────────────────╮
│ *    image      TEXT  [default: None] [required]                    │
╰─────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────╮
│ --mount-point                  PATH  [default: None]                │
│ --pull           --no-pull           [default: no-pull]             │
│ --mount          --no-mount          [default: no-mount]            │
│ --help                               Show this message and exit.    │
╰─────────────────────────────────────────────────────────────────────╯

Example Usage

Mount ubuntu:latest image to /mnt/docker-image and pull the image if it is not present

docker-mount --mount --pull --mount-point /mnt/docker-image ubuntu:latest

Mount ubuntu:latest image to /mnt/docker-image and do not pull the image

docker-mount --mount --no-pull --mount-point /mnt/docker-image ubuntu:latest

Generate command to mount ubuntu:latest image to /mnt/docker-image but do not mount or pull the image

docker-mount --mount-point /mnt/docker-image ubuntu:latest

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

docker_mounter-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docker_mounter-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file docker_mounter-0.1.0.tar.gz.

File metadata

  • Download URL: docker_mounter-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.3 Darwin/24.1.0

File hashes

Hashes for docker_mounter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3c7b92bdd060ada4de7d022f415eae2ed254e0c8f53130f9428fbfaaa841bf25
MD5 70f884be54bd95542877b463368bf531
BLAKE2b-256 ebb0f265ffc75bd618ce8361a1d0cd52f696638353615cf85f7693ea9c2f4582

See more details on using hashes here.

File details

Details for the file docker_mounter-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: docker_mounter-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.3 Darwin/24.1.0

File hashes

Hashes for docker_mounter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8aa7ab4b1319bf2713ec6c35e52ef816077061ae6f71be9a2d1f6632af194829
MD5 18599ddca4535e32ad3eab0108da512d
BLAKE2b-256 5dd1fe2bcf3aea1f9e20c3cb8e1a55b606b40ea87e6618493ce751ba64b3ff08

See more details on using hashes here.

Supported by

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