Anleitungen


Installation Podman Debian (buster)

Die Anleitung basiert zum Teil auf den Installationsanweisungen unter https://podman.io/getting-started/installation und den eigenen Erfahrungen.

Debian selber aktualisieren

apt-get update
apt-get dist-upgrade

Benötigte Paket installieren

apt-get install apt-transport-https ca-certificates curl gnupg2

Debian Paket Quelle einbinden

Debian GPG Key von Podman in apt laden

curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/Release.key | sudo apt-key add -

apt Paketquelle für buster-packport unter /etc/apt/sources.list anlegen

echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list

apt Paketquelle unter /etc/apt/sources.list.d/ anlegen.

echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list

Installation des Pakets podman

apt-get update
apt-get -y -t buster-backports install libseccomp2
apt-get -y install podman

User Namespace aktivieren

Wenn diese Einstellung nicht gemacht wird, kommt folgende Fehlermeldung

podman
cannot clone: Operation not permitted
user namespaces are not enabled in /proc/sys/kernel/unprivileged_userns_clone
echo 'kernel.unprivileged_userns_clone=1' > /etc/sysctl.d/userns.conf

Neustart mittels "reboot" nicht vergessen.

Podman Testprogramm aufrufen als normalen Benutzer

Es gibt aktuell ein Bug wofür es aber unter https://github.com/containers/podman/issues/5891 ein Workaround gibt

podman run docker.io/hello-world

Ausgabe:

Trying to pull docker.io/hello-world...
Getting image source signatures
Copying blob 0e03bdcc26d7 done  
Copying config bf756fb1ae done  
Writing manifest to image destination
Storing signatures

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/