TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to Replace Docker with Podman on a Mac

324 pointsby moleculeover 3 years ago

14 comments

williamsmjover 3 years ago
My understanding is that this old article is no longer the simplest&#x2F;easiest way of doing this. For that, see <a href="https:&#x2F;&#x2F;marcusnoble.co.uk&#x2F;2021-09-01-migrating-from-docker-to-podman&#x2F;" rel="nofollow">https:&#x2F;&#x2F;marcusnoble.co.uk&#x2F;2021-09-01-migrating-from-docker-t...</a>. tl;dr:<p><pre><code> $ brew install podman $ podman machine init $ podman machine start $ alias docker=podman </code></pre> If you&#x27;re on an M1 you may run into <a href="https:&#x2F;&#x2F;github.com&#x2F;containers&#x2F;podman&#x2F;issues&#x2F;10577" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;containers&#x2F;podman&#x2F;issues&#x2F;10577</a> (which is WIP, and may have been resolved by <a href="https:&#x2F;&#x2F;github.com&#x2F;containers&#x2F;podman&#x2F;pull&#x2F;11451" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;containers&#x2F;podman&#x2F;pull&#x2F;11451</a>).
评论 #28464445 未加载
评论 #28468620 未加载
评论 #28464541 未加载
评论 #28463544 未加载
sucharover 3 years ago
Is there any practical benefit of Podman over Docker on a Mac? Virtual machine is still needed, so any performance issues are likely to persist (well, maybe Docker for Mac is a bit more buggy, but we can manually setup Docker instead of Podman in a similar way).<p>Also, I think we are losing here access to the Docker socket on the host (inside the virtual machine it can be emulated using docker-podman).
评论 #28463696 未加载
评论 #28463651 未加载
评论 #28463707 未加载
deathanatosover 3 years ago
This feels like the whole industry is now all going through the same motions…<p>I tried podman; two hurdles I haven&#x27;t figured out: 1&#x2F; sending the context is <i>incredibly</i> slow on podman, compared to Docker+Buildkit. It&#x27;s definitely trying to send literally the entire context, like Docker without Buildkit does, but even more slowly… 2&#x2F; private registry auth. Haven&#x27;t really tried too hard, but it&#x27;s not just &quot;a drop in replacement&quot;; I think I need to somehow auth with podman specifically. (Part of this is our external registry is ACR, and we auth with `az`, but I think `az` is presuming Docker…)
评论 #28466327 未加载
lpasselinover 3 years ago
Now there is `podman machine` which makes most of this article outdated.
评论 #28463040 未加载
inyorgrooveover 3 years ago
While there do exist several alternatives to Docker Desktop, I am a fan of multipass. Something I don&#x27;t see anyone talking about, the host to guest volume mounting performance can&#x27;t be beat. The alternatives can&#x27;t hold a candle to Docker Desktop&#x27;s solution.<p>I need this volume mounting to get development code changes into the container in a reasonable time and the alternative performance feels like running on a standard hard drive compared to nvme ssd.
评论 #28463243 未加载
评论 #28465313 未加载
tambourine_manover 3 years ago
Is Vagrant still actively used? I was all over it some 4-5 years ago.<p>I remember HashiCorp even favoring a newer product they were trying to promote.
评论 #28463977 未加载
评论 #28463954 未加载
throwaway234565over 3 years ago
How does this compare to multipass? I tried multipass out on an Intel Mac yesterday and it worked great until I connected to corporate vpn (anyconnect) and then it all went downhill. Tried some of the workarounds (<a href="https:&#x2F;&#x2F;multipass.run&#x2F;docs&#x2F;troubleshooting-networking-on-macos#network-routing-problems" rel="nofollow">https:&#x2F;&#x2F;multipass.run&#x2F;docs&#x2F;troubleshooting-networking-on-mac...</a>) but no luck. Back to Docker Desktop.
mbellover 3 years ago
Is there is a solution for using `docker-compose` on mac with podman? I know that podman supports it natively now, and there is `podman-compose`, but I couldn’t find much on getting either working on a mac due to the remote setup.
swlkrover 3 years ago
I tried podman on an intel mac and everything worked except mounting volumes
评论 #28463746 未加载
no_wizardover 3 years ago
Does Podman do a better job avoiding bloat in the development workflow? That’s been a major thing with docker for me, it spins up a new layer whenever I try to do send an arbitrary command to a running vm, which with development (PHP) I find this is something I have to do often, so these layers add up quickly
hendryover 3 years ago
I tried podman on my MBP and didn&#x27;t get very far :&#x2F; <a href="https:&#x2F;&#x2F;github.com&#x2F;containers&#x2F;podman&#x2F;issues&#x2F;11479" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;containers&#x2F;podman&#x2F;issues&#x2F;11479</a>
chrisweeklyover 3 years ago
See <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28379556" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28379556</a> for a recent discussion about minikube (the only drop-in replacement for Docker Desktop).
CR007over 3 years ago
We replaced Docker hub with ghcr + buildah action and we won&#x27;t ever look back! We are just waiting for more compose support which seems that will happen shortly anyway.<p>Thanks redhat!
mikesabbaghover 3 years ago
best thing about podman is the -l option, that refers to last image used<p>for example to see the last conatainer&#x27;s logs:<p>podman logs -l<p>just beautiful!