Podman is a daemon-less alternative to Docker, but with Rootless containers, grouping containers in pods, and systemd integration. What do you think of it?

3 years ago by Cyclohexane to c/programming

Podman is a lot like Docker: a tool for running OCI containers. While it maintains backwards compatibility with Dockerfile and docker-compose syntax, it offers a lot of other benefits:

  • daemonless: it can run containers without a daemon process running in the background.
  • Rootless: can run containers without root privileges
  • pods: can group containers into secluded pods, which share resources and network namespace

Podman has other features I haven't explored yet, like compatibility with Kubernetes yaml file, and being able to run containers as systemd units.

Have you used podman before? What are your thoughts on it?

load all comments
0x442e472e 2 points 3 years ago

We are trying to use podman as a way to run Testcontainers and build images on a kubernetes cluster using Gitlab CI. Building works, but running Testcontainers doesn't so far :(

path: 0 3213345, hotness: undefined, score: 2, children: 13
jlh 2 points 3 years ago

Have you looked into kaniko?

path: 0 3213345 3219494, hotness: undefined, score: 2, children: 4
0x442e472e 1 point 3 years ago

Yes but imo it's easier and nicer to integrate Podman into an existing build, for example with maven

path: 0 3213345 3219494 3229870, hotness: undefined, score: 1, children: 3
timbuck2themoon 1 point 3 years ago
path: 0 3213345 3216705, hotness: undefined, score: 1, children: 7
0x442e472e 1 point 3 years ago

We are using the kubernetes executor. You can add additional sidecar services for your jobs, and we're using that mechanic to run podman as a daemon. There are some gotchas I had to solve if I remember, but now it works nicely for us. Except for Testcontainers, which throws an exception when your Testcontainer is exposing ports

path: 0 3213345 3216705 3230041, hotness: undefined, score: 1, children: 6
programming
programming

@programming.dev

login for more options
28795
3718
3346

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev


go to feed...