Install Podman on Ubuntu

Just a quick note on how to get podman working on ubuntu...

$ . /etc/os-release
$ echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:testing.list
$ curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -
$ sudo apt-get update -qq
$ sudo apt-get -qq -y install podman fuse-overlayfs
ref: https://podman.io/getting-started/installation.html


I had to install fuse-overlayfs too to get things running a bit faster...

I tried building an image with podman build -t example-image and I got an error like:

ERRO[0000] systemd cgroup flag passed, but systemd support for managing cgroups is not available

And when I added --cgroup-manager=cgroupfs and it started working fine with podman --cgroup-manager=cgroupfs build -t example-image