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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for containerutil-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaced9a4c92c827b9ba4c7ead2be52ed0c674a53674cb04bb1f7685f1ea4eadc |
|
MD5 | c731c701723f0084f0b6a4fb519426cf |
|
BLAKE2b-256 | cfb7629d4778e7cf9170479da9429eaa929bf182b6f3a9b02a482566eac79e0d |