Porto is a yet another Linux container management system.
The main goal is providing single entry point for several Linux subsystems such as cgroups, namespaces, mounts, networking, etc. Porto is intended to be a base for large infrastructure projects.
Container management software build on top of porto could be transparently enclosed inside porto container.
Porto provides a protobuf interface via an unix socket /run/portod.socket.
Command line tool portoctl and C++, Python and Go APIs are included.
Porto requires Linux kernel 4.5 and optionally some offstream patches.
sudo apt install -y \
g++ \
cmake \
protobuf-compiler \
libprotobuf-dev \
libgoogle-perftools-dev \
libnl-3-dev \
libnl-genl-3-dev \
libnl-route-3-dev \
libnl-idiag-3-dev \
libncurses5-dev \
libelf-dev \
zlib1g-dev \
pandoc \
libseccomp-dev \
libbpf-dev # for focal or newer
# dependencies for deb package building
sudo apt install -y \
dpkg-dev \
debhelper \
pkg-config \
autoconf \
libtool \
dh-python \
python-all \
python-setuptools \
python3-setuptools \
bash-completion
mkdir build && cd build
# use DUSE_SYSTEM_LIBBPF for xenial and bionic
cmake .. # -DUSE_SYSTEM_LIBBPF=OFF
# use make -j for parallel build
make
# default installation path is /usr/sbin
sudo make install
or
# should install additional dependencies for deb package building
./dpkg-buildpackage -b
sudo dpkg -i ../porto_*.deb
sudo groupadd porto
sudo adduser $USER porto
sudo portod start
portoctl exec hello command='echo "Hello, world!"'