Getting Podman running on Ubuntu 22.04 LTS(gigatexal.blog)
gigatexal.blog
Getting Podman running on Ubuntu 22.04 LTS
https://gigatexal.blog/pages/getting-podman-on-ubuntu/getting-podman-on-ubuntu.html
4 comments
Author here. But I’m not sure. My environment is just a vanilla Ubuntu setup with my main login user managed by Centrify AD. It’s a bit odd as the user doesn’t exist in /etc/passwd etc.
What is the error you get? Maybe HN can crowdsource a fix. Or is this a known bug?
What is the error you get? Maybe HN can crowdsource a fix. Or is this a known bug?
It's this issue; people ran into it since early 2022. I haven't tracked it down in the Ubuntu issues yet, but basically the same thing fails on today's AMIs. https://github.com/containers/podman/issues/13341
The fix is fairly trivial - if you don't care about apparmor you can disable it. If you do, the usual new policy from the complain log is enough.
The fix is fairly trivial - if you don't care about apparmor you can disable it. If you do, the usual new policy from the complain log is enough.
I'm on a work issued Ubuntu laptop but I very much live (by choice) in the Redhat ecosystem. I wanted to get Podman on my machine but the AD managed user for my laptop was a pain. So having to run it as a user I didn't login as I ran into issues. Anyway, this blog post is more about me having a place to remember the commands to get it working again in the future but also is a love-letter to Podman and Toolbox.
One thing I find harder about podman is auto start containers. They should make that easier.
I think that’s facilitated by systemd.
Definitely not as easy as a simple flag but this is the proper way to do it. https://linuxhandbook.com/autostart-podman-containers/amp/
Definitely not as easy as a simple flag but this is the proper way to do it. https://linuxhandbook.com/autostart-podman-containers/amp/
The article lists a couple of caveats already, but to me the real hurdle is the lack of a proper alternative to Docker Compose.
You can use the docker compose cli directly since podman exposes the docker api
export "DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock"
export "DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock"
Isn't there a separate podman-compose project? Also, I believe you can run much of Docker Compose on top of podman-docker.
I’m dumb. When I wrote the article it was late. Docker-Compose really was a game changer.
Yea Podman compose exists. I’ll add a section about docker compose to it in an update.
https://github.com/containers/podman-compose
Yea Podman compose exists. I’ll add a section about docker compose to it in an update.
https://github.com/containers/podman-compose
article updated
(Requires either fixing or disabling the policies)