Introduction to deployment and virtualization (DEVI23-02 for IMAGE_S8)

Joseph Chazalon

February 2023

To contact us

Material for each session

All material is available on the Moodle course page.

Using EPITA’s computers

Since about 2022 (at EPITA), Podman enables the use of containers is a root-less environment, and we stopped using Docker for teaching. For what we need, this is an almost unnoticeable replacement. The default configuration proposed below even alias docker=podman, so you can enjoy the same CLI-compatible API as Docker.

Podman is an open-source, Linux-native tool designed to develop, manage, and run containers and pods under the Open Container Initiative (OCI) standards. Presented as a user-friendly container orchestrator developed by Red Hat, Podman is the default container engine in RedHat 8 and CentOS 8. It is advertised as a drop-in replacement for Docker (alias docker=podman).

To activate Podman on EPITA’s NixOS lab machines:

cd /tmp/
wget -O podman-shell.nix https://bit.ly/podman-shell-nix-v20230224
nix-shell podman-shell.nix  # Run this for each new shell you start
cd -
if which podman > /dev/null ; then echo "Podman is ready to use." ; else echo "There were some error activating Podman." ; fi
docker run --rm docker.io/library/hello-world

The above instructions need to be (partly) run for every new shell you start. You may want to update your nix configuration accordingly.