Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Blog Pricing

Alex Kretzschmar

๐Ÿ‘ค Speaker
808 total appearances

Appearances Over Time

Podcast Appearances

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

You've got to do this user ID shuffle because the user IDs inside the container don't map to the IDs on the host properly, unless you do this shift.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

And so it ends up being this world of complicated UID script shuffling nonsense that I just haven't got time for.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

Well, I'll break it down as best I can, just really simply.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

So in a rootless Podband container,

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

you end up shifting the user IDs by roughly 100,000 or so.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

It depends on how you've got it configured.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

So on your host, you would probably have a user ID of something like 1,000.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

Inside the container, it would be the user ID 100,000 and 1,000.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

So you've got to find a way to map those IDs from what the container sees to what the host can speak so that the file permissions for those bind mount volumes actually work.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

And that whole mess, the fact I've just had to explain that to you is exactly my point.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

Yes, I'm feeling your point.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

With the daemon that Docker has running as root, yes, there are some security implications with that, but also comes simplicity for the user experience.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

There's some other interesting stuff that Podman does as well.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

They have this thing called the quadlets.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

I don't know if you've heard of Podman quadlets.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

It's a bit of a silly name.

The Changelog: Software Development, Open Source
Down the Linux rabbit hole (Friends)

But essentially, they're systemd units that let you run your Podman containers as systemd units instead of using something like Docker Compose to define the state of the world that that container would see.