Error running a Podman container on a Centos 7 VPS
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Error running a Podman container on a Centos 7 VPS

by
FrancoB
Created on 2020-03-07 12:16:01 (edited on 2024-09-04 14:26:07) in Virtual Private Servers

I'm trying to run (as root) the simplest Podman command on my VPS in order to see if it works:

podman --storage-driver=vfs run -it --rm alpine echo hello

But this command gives me the error:

ERRO[0008] Error adding network: failed to create bridge "cni0": could not add "cni0": permission denied
ERRO[0008] Error while adding pod to CNI network "podman": failed to create bridge "cni0": could not add "cni0": permission denied
Error: error configuring network namespace for container e7c84c1241a5f80864c7c23bae2dfbee43449ab261417c309dac30730b4aa739: failed to create bridge "cni0": could not add "cni0": permission denied

Anyway, as I cannot be more privileged than root, why do I get the "permission denied" error? I'm supposing that it's because of the shared kernel between virtual machines, but I don't know how to get around/fix this error.

Now, I'm running this on a 2014 VPS, but I use this old VPS as a testbed for my 2018 production VPS, so maybe the 2018 VPS has a kernel configured differently than the 2014 VPS, so while Podman does not work on the 2014 VPS, it does not necessarily mean that it will not work on a 2018 VPS. I just don't want to mess with the production machine to find that out.

So my question is:
Has anyone been able to run Podman containers on a VPS and how?

Thank you.


Replies are currently disabled for this question.