this post was submitted on 15 Jul 2023
28 points (100.0% liked)

Linux

1257 readers
49 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I am already fairly comfortable using docker and its tool set. Is the tide shifting towards Podman? Should I start learning how to use Podman? Thanks in advance.

top 19 comments
sorted by: hot top controversial new old
[–] kelvie@lemmy.ca 9 points 1 year ago (2 children)

Depending on what you're using it for. For companies it feels like the tide is shifting toward using k8s and not caring what actually runs your containers.

[–] erwan@lemmy.ml 6 points 1 year ago

That's for production, in dev Docker (or podman) is very much used.

[–] m3adow@feddit.de 3 points 1 year ago (1 children)

That's been the case for years now. No sane company runs production workloads on Docker or Docker compose. There's niche solutions like Hashicorps Nomad or Docker Swarm, but most will probably either use a Hyperscalers container offering and/or use Kubernetes.

[–] mrmanager@lemmy.today 5 points 1 year ago

They do, and then they write blog posts about how the complexity is killing their teams productivity.

[–] aksdb@feddit.de 6 points 1 year ago (4 children)

I use podman for almost everything. Especially since it's working rootless. BUT I am also clearly swimming against the tide there. Everyone else in the company uses docker and I typically can't just take their docker-compose setups 1:1 over to podman. First, because they often rely on having root and second, because they use docker specific hacks (like some internal hostname you can use to access the host from within docker). Since I am not a fan of docker-compose anyway, I don't care that much ... I would have built my own setup with docker as well.

On my server I have a lot less trouble with podman than I had with docker. I run quite a lot of services there, and the docker proxy (and sometime the daemon) always started to act up after a while, causing individual containers to no longer properly receive traffic and me no long being able to control them. With podman all of that just works. And I have systemd managing the container lifetimes instead of some blackbox.

[–] PlexSheep@feddit.de 2 points 1 year ago (1 children)

Why do you dislike compose?

[–] aksdb@feddit.de 1 points 1 year ago (1 children)

I want full control over which containers launch when. I also typically have a different requirement in which network a container runs and I want to re-use existing databases instead of spinning up a new one for each service. I want specific container names. And so on.

In short: I want full control and customization.

[–] PlexSheep@feddit.de 1 points 1 year ago (1 children)

You can tell which service depends on which in compose, you can create, specify and set networks and add containers to them, you can keep a central database and just add the network of it to your new services, and you can also specify a container name.

As I see it (and for my compose usage), everything you mentioned works in compose.

Besides, what is your alternative? Do you just use the docker cli? I personally found that to be way less flexible than compose.

[–] aksdb@feddit.de 1 points 1 year ago* (last edited 1 year ago)

You can tell which service depends on which in compose, you can create, specify and set networks and add containers to them, you can keep a central database and just add the network of it to your new services, and you can also specify a container name.

The point is, if I get a compose file, all of that is already wired up with expectations of the maintainer. When I start heavily modifying it, I end up with an unmaintainable mess. So I rather look into what the service(s) actually require and build it for my use case.

Besides, what is your alternative?

The CLI, yes. And for my own server Ansible. But the semantics of the ansible module are identical to the CLI. Knowing the CLI by heart gets me much further than knowing docker-compose by heart. (Actually, I would have to look into the manual for docker-compose all the time, while I can simply do podman --help to see what parameters it needs, if I forgot something.)

load more comments (3 replies)
[–] ablackcatstail@lemmy.goblackcat.com 6 points 1 year ago (1 children)

I have to admit I like the concept of rootless containers very much.

[–] federal_explorer@discuss.tchncs.de 1 points 1 year ago* (last edited 1 year ago) (1 children)

You can do that with docker too, not that it's flawless of course, networking is just awful. Same thing on Podman.

[–] garam@lemmy.my.id 5 points 1 year ago

If you are begining in Docker/Podman, you can try take some course from red hat like DO188, if you don't want fork money, Red Hat with Dan Walsh offer free books https://developers.redhat.com/e-books/podman-action

It will be beneficial for us, developer, and Dan Walsh, Brent Baude, are mostly replying in #podman libera.chat. Well you can ask here tho, I think it's okay.

I just hope /r/podman in reddit moved here, and being federated...

[–] Gargari@lemmy.ml 3 points 1 year ago

You need less time to learn/read-doc podman than posting the question + waiting for answers. Its a basic tool, when you need it -> read doc