-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman support #122
Comments
Hi @Greylinux , |
Hi @tomsquest , sorry for the delay, I'm currently learning all the different way, podman can be used to create, run and restart a container/containers. Some of these options being podman-compose , similar to docker-compose, a systemd service and a kubernetes yaml file. So I can report back here with my results, it may be a while though. |
Hi @tomsquest , Sorry I haven't updated this for a while. Ok so after a lot of research I decided the best way to run Podman is with systemd. Your docker run command will work without issue with podman , so you could add a note that its possible to run with podman and without sudo.
you may notice the 'Z' after each volume and this is because I run this fedora with selinux enabled , so this adds another layer of protection , but of course its not necessary. If you want to have something similar to docker compose then you can add this systemd unit file to your system and just change the volume mounts. you then have to use the --user tag with systemctl to restart , start ,stop containers.
one cool feature with running podman containers using systemd is if you add the entry
I found systemd to be the easiest solution to run podman similar to docker compose , just copy the systemd unit files to the right location , enable container service and then sit back and relax. here is the systemd unit file
any questions just let me know, if you want to add this to your readme , then please do. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue was closed because it has been stalled for 14 days with no activity. |
Added a link in the README to this issue. |
Hi @tomsquest and @Greylinux, The configuration is more or less based on the one above and assumes that the mounts already exist with proper permissions. Therefore "TAKE_FILE_OWNERSHIP" is set to false. Further, it assumes host users/groups are used, however, using Podmans namespace mapping might be a good alternative too. Here is the YAML Pod definition proposal
In order to manage the pod with systemctl just create a .kube file in
Afterwards execute |
Hi @strauss115 , Great example with Podman! I will make a note about it in the Readme. 👍 |
Hi @tomsquest I've created another configuration that makes use of Podman Quadlets but rolls everything into a single The configuration is based on the official docker-compose.yml. I've decided to let systemd take care of ressource usage and therefore placed the necessary options into the
Hope this can help someone who is looking to have the whole Podman Quadlets setup in a single file. |
Thanks for the nice example @WhoIsHans ! |
Hi,
sorry to open an issue, if it's not practical please close it. But I wonder if you have every tried to run this using podman ? And therefore add it as an option in the readme ?
The text was updated successfully, but these errors were encountered: