sudo apt install cmake python3-dev
(Optional 1) Install in home
directory or virtual environments
pip3 install .
(Option 2) Install under /usr
sudo pip3 install .
Download an Ubuntu 22.04 root hierarchy (or any arbitrary image rootfs) and unzip it. amd64, arm64
For installation with option 1:
# `env "PATH=$PATH` is necessary to find the executable if not installed with sudo...
sudo env "PATH=$PATH" pycontainer --name <name> --root <path/to/unzipped/rootfs> <command> [<args>...]
For installation with option 2:
sudo pycontainer --name <name> --root <path/to/unzipped/rootfs> <command> [<args>...]
Provides APIs for the lower level abstraction required to spawn containerised processes. Command line interface
is implemented with main.py
. Can be used either as a C++ library or a Python module.
chroot
jail (deprecated)pivot_root
jailproc
mapping- Isolation on cgroup, IPC, mount, network, PID and UTS
- Network binding
- Arbitrary path mapping
dev
andsys
path mapping- Resource management with
cgroup
- User management under unshared user namespace
- UnionFS
- Daemon