Skip to main content

Tools for inspecting contents of docker container filesystem.

Project description

containerutil.Path provides API similar to pathlib.Path for inspecting docker container file system:

import docker
import containerutil

client = docker.from_env(version='auto')
ctnr = client.containers.get('my-container')

p = containerutil.Path(ctnr, '/foo/bar/path')

p.exists()        # True if file exists (regardless of type)
p.is_file()       # True if file exists and is a regular file
p.is_symlink()    # True if file exists and is a symbolic link
p.is_fifo()       # True if file is a named pipe (FIFO)

Installation

From PyPI using pip package manager:

pip install --upgrade containerutil

Or install the latest sources from GitHub:

pip install https://github.com/pavdmyt/containerutil/archive/master.zip

License

MIT - Pavlo Dmytrenko

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

containerutil-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

containerutil-0.1.0-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: containerutil-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for containerutil-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7d90d1adc7d2437a9474d6e9342585fc9b61f984d61bbf2402819064b1483bd3
MD5 b18734a6e35ad929138577d8b16bb0c8
BLAKE2b-256 d5859b92c70c91f18105ef5ad3e890cda9745d9121b938bffcf692370d511cb6

See more details on using hashes here.

File details

Details for the file containerutil-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for containerutil-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eaced9a4c92c827b9ba4c7ead2be52ed0c674a53674cb04bb1f7685f1ea4eadc
MD5 c731c701723f0084f0b6a4fb519426cf
BLAKE2b-256 cfb7629d4778e7cf9170479da9429eaa929bf182b6f3a9b02a482566eac79e0d

See more details on using hashes here.

Supported by

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