Live data from Hacker News

How to Replace Docker with Podman on a Mac

redhat.com

41–50 of 90 posts

Re: How to Replace Docker with Podman on a Mac

#41

Earlier quoted context omitted.

Does this work with compose? Probably not but just wondering

The problem with making this work, IIRC, is that Docker Compose doesn't actually "compose" Docker commands, but instead _re-implements_ a bunch of functionality itself through its Python libraries. So you'd actually need to bring your own CLI-compatible Docker Compose implementation for Podman rather than just making your Docker replacement compatible.

Podman solved this by just re-implementing docker’s socket API (which does mean it now requires a daemon to use compose) https://www.redhat.com/sysadmin/podman-docker-compose

Re: How to Replace Docker with Podman on a Mac

#43

Earlier quoted context omitted.

So is a Vagrant-based alternative the current solution? Vagrant seems like it's long been a 'maintenance only' project for Hashicorp, though not abandoned at least.

Also vagrant by default depends on virtualbox, and that is x86-only so it does not work on your M1 Mac, or your Pinebook : )

I believe there are hypervisor.framework backends for vagrant, but it seems that for whatever reason they haven’t taken off? I’m not exactly sure why they haven’t become the default on Mac, given how much more efficient it presumably is.

Re: How to Replace Docker with Podman on a Mac

#44

My understanding is that this old article is no longer the simplest/easiest way of doing this. For that, see https://marcusnoble.co.uk/2021-09-01-migrating-from-docker-t... . tl;dr: $ brew install podman $ podman machine init $ podman machine start $ alias docker=podman If you're on an M1 you may run into https://github.com/containers/podman/issues/10577 (which is WIP, and may have been resolved by https://github.com…

That tl;dr worked great.

I'll have to see if there's a Nix package for it tomorrow morning for work.

Re: How to Replace Docker with Podman on a Mac

#46
post #22

Earlier quoted context omitted.

Not having to pay Docker Inc to use it is the big advantage along with the security that comes with a solution that isn’t the meal ticket of the company that makes it so it will likely live on community supported for a long time.

What is podman’s revenue model? I am perplexed by the conclusion that charging enterprise customers $5/user-month makes the product’s future less secure.

podman has no revenue model, it is an open source project managed by https://github.com/containers

Re: How to Replace Docker with Podman on a Mac

#47
post #38

My understanding is that this old article is no longer the simplest/easiest way of doing this. For that, see https://marcusnoble.co.uk/2021-09-01-migrating-from-docker-t... . tl;dr: $ brew install podman $ podman machine init $ podman machine start $ alias docker=podman If you're on an M1 you may run into https://github.com/containers/podman/issues/10577 (which is WIP, and may have been resolved by https://github.com…

Does this actually work for you? I tried it and networking was broken out of the box – it couldn’t even pull a container image. I didn’t have time to spend digging into it, however, and would not rule out that being an artifact of our VPN.

Networking is working just fine over here; I rebuilt the machine to be using the latest (Sept 4) FCOS stream, but it was fine on the previous version (Aug 21) as well.

Are you using short names to pull your images, i.e. 'requarks/wiki:latest' rather than the full path 'docker.io/requarks/wiki:latest'? (Note: official images in Docker Hub are under the 'library/' namespace, e.g. 'library/fedora')

Other networking issues, like the port publishing through the host bridging by default without needing to pass '--network' I believe are slated for the upcoming 3.3.2 patch release.

Re: How to Replace Docker with Podman on a Mac

#48
post #47
post #38

Earlier quoted context omitted.

Does this actually work for you? I tried it and networking was broken out of the box – it couldn’t even pull a container image. I didn’t have time to spend digging into it, however, and would not rule out that being an artifact of our VPN.

Networking is working just fine over here; I rebuilt the machine to be using the latest (Sept 4) FCOS stream, but it was fine on the previous version (Aug 21) as well. Are you using short names to pull your images, i.e. 'requarks/wiki:latest' rather than the full path 'docker.io/requarks/wiki:latest'? (Note: official images in Docker Hub are under the 'library/' namespace, e.g. 'library/fedora') Other networking issu…

Good to know - I’ll give it another run when I have more time later this week.

Re: How to Replace Docker with Podman on a Mac

#49

Earlier quoted context omitted.

What is podman’s revenue model? I am perplexed by the conclusion that charging enterprise customers $5/user-month makes the product’s future less secure.

podman has no revenue model, it is an open source project managed by https://github.com/containers

So without a revenue model, how would they pay someone to maintain it if the current maintainer[s] need to focus on family or paying their mortgage?

Re: How to Replace Docker with Podman on a Mac

#50

Earlier quoted context omitted.

podman has no revenue model, it is an open source project managed by https://github.com/containers

So without a revenue model, how would they pay someone to maintain it if the current maintainer[s] need to focus on family or paying their mortgage?

When I last looked into it, I came away with the feeling that github.com/containers is pretty much RedHat without any official backing.
Post reply on HN