Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm glad they have podman desktop. Personally though, once I realized that I can use the command line version without it (unlike docker in my experience) I uninstalled it as I don't really need the UI / KIND, etc. For me the command line is fine and having something where I don't have to first shell into wsl is great (it just runs it itself behind the scenes). Of course, Linux is generally better for development imo but this is a nice compromise on Windows.


I prefer to use podman/docker/rancher on windows because then the VM runs on HyperV.

Whereas when I install Docker in WSL it runs inside of my WSL VM.


These days Docker Desktop on Windows uses WSL as its backend by default.


> unlike docker in my experience

You have piqued my curiosity. What does Docker Desktop do that the CLI cannot?


`docker machine` was deprecated in favor of Docker Desktop in order to funnel people towards paid licenses. But there's no real reason Docker on non-Linux should need a GUI.


Hi, I'm the founder of Docker. The decision to launch Docker Desktop, and deprecate Docker Machine, had nothing to do with revenue. Desktop was free when we launched it in 2016, and it remained free until 2021. By then Docker had a new CEO, a new board, and I was gone. So the two events (launch and monetization) could not be more disconnected.

The reason we launched Docker Desktop (initially known as "Docker for Mac") was to make the user experience better: easier to install, better integrated with the system (virtualization APIs, keychain, VPNs, etc), and better support for host volumes.


I do so wish we could have those features without needed a desktop app for them. There’s never a case where I’d want to run Docker Desktop for anything GUI.


You can't get around packaging it as a desktop app - that's how you get the seamless "drag into Applications folder, double-click" install experience. I agree you don't necessarily need a full-blown desktop GUI. The original version shipped with the whale menu bar icon, a basic settings page, and that's it.

I do think it makes sense to add more GUI features over time, to make Docker more approachable - not everyone is a CLI wizard. But, it shouldn't make the app slower or annoying to use for those who don't need it.


In my experience, Docker Desktop was needed in order to use the CLI in Windows. It seemed fairly heavyweight as well. Maybe that has all changed now, not sure. In any case with podman on Windows, no UI is needed and you don't have to shell into WSL to use it.


You can run the regular Docker engine inside WSL2 and run the regular Docker client on Windows with DOCKER_HOST set. This has been true since 2016 when we originally got WSL2, with the exception that we used to have to enable systemd (but no longer do).


Good to know. What are the steps to get this working assuming you already have WSL enabled on your machine, but don't have any distros yet?


It should be along these lines:

- Install Ubuntu distro in WSL2.

- Create an ssh key pair on the Windows side using ssh-keygen.

In Ubuntu:

- Install Docker engine using Docker's apt-get instructions for Ubuntu.

- Add the ssh public key to ~/.ssh/authorized_keys.

In Windows:

- Run "wsl hostname -I" to get your WSL2 hostname.

- Test "ssh user@wsl-host", using the WSL2 hostname. It should work without prompting for a password.

- Unzip docker.exe somewhere.

- In your user environment variables, set PATH to include the directory with docker.exe, and set DOCKER_HOST to "ssh://user@wsl-host", using the WSL2 hostname.

That should be it; you should now be able to run docker normally from your Windows user, using file context from the Windows side.


Thanks for the information. I think for some use cases this is perfectly fine but for others, a kind of one-stop-shopping approach is nice as well. For instance with podman (not desktop, just the cli), you only have to run: "winget install -e --id RedHat.Podman" and you are good to go. This is nice, particularly on bigger teams when you want to reduce friction to a bare minimum.


Definitely. Podman Desktop lacks the onerous commercial license restrictions that Docker Desktop has, which is what drove me to set this up. Getting the Docker Desktop licenses tracked and paid at work was more hassle than setting up Docker manually. But Podman Desktop doesn't have any of that hassle, which is awesome.


Note that you don't need Podman Desktop if you don't want the UI. That is the sweet spot that we landed on. Of course if you want the UI that is fine as well - they just aren't bundled together in the same way. Of course, as you pointed out, even Docker / Docker Desktop isn't quite as coupled as it appears on the surface which is great to know.


Since they mention Windows, I believe this is a reference to the fact that you cannot (easily) install the Docker CLI without Docker Desktop. Podman does not have this issue.


Docker publishes the Docker CLI for Windows directly, the same as every other platform. You just download it and run it; it does not even require installation. With DOCKER_HOST set, you can access the Docker engine in WSL2 from the Windows side. You don't need to shell into WSL2 to interact with Docker and it can use your Windows files. https://download.docker.com/win/static/stable/x86_64 -- unzip, grab self-contained docker.exe. Docker Desktop and Podman Desktop automate this a bit, but it's not a big lift to set this up with regular Docker yourself.


You absolutely can run docker on the CLI in WSL2. The only requirement is you have systemd running in your WSL distro, which is fully supported.


Yes, of course that works, but then you have to start up and shell into WSL. With podman, you can run all commands directly in Windows which is more seamless. Plus, getting it working is just a matter of running "winget install -e --id RedHat.Podman". This is particularly helpful when trying to roll things out for larger teams as they don't have to know anything about WSL and everything integrates in their environment seamlessly. Of course, just using Linux is preferable for development if you can get away with it.


> You absolutely can run docker on the CLI in WSL2.

But again, they're talking about Windows, not Linux-in-Windows or virtualized Linux on Windows. Just because you can do something in WSL2 doesn't mean you "can do it on Windows", as much as you "can run systemd and Wayland on Windows" because you could run it inside a Linux VM...


Yes. For some the distinction between the two is almost nothing as WSL is pretty seamless. However, using Podman directly in your normal Windows shell opens up more use cases. Podman is of course running everything behind the scenes using WSL.


> For some the distinction between the two is almost nothing as WSL is pretty seamless

WSL1 yes, but not WSL2, which the parent explicitly mentioned. WSL2 is just virtualization with a fancier name, might as well use VirtualBox and similar at that point.


While it is fundamentally a VM, it is far more seamless than running a regular VirtualBox.


Your posts in this thread seem to be focused on the inability to use Docker from the Windows shell, but it's not true: you just need to set DOCKER_HOST. Then the Windows client can connect to a Linux engine in WSL2. Docker engine in WSL2 runs as a systemd unit and doesn't need to be manually started. Podman/Docker Desktop are doing far less work here than you might be expecting. They are just automating this setup for you. I run this setup and it is genuinely a one-time nothingburger. If you have a bunch of Windows machines, you can have them all share one Linux Docker engine if you want, by pointing DOCKER_HOST at the same host.


For mac, wouldn't it be just easier to use lima from cli? How does Podman compare to that? Docker unless on Linux has always being a bloat.

Or are there any lightweight hypervisor on top of firecracker alternative? At this point with the way systemd is going, we should just switch back to VM? Everything is just more mature on native OS install. Docker to Linux, just feels kinda like SPA reinventing the html parsing on top of a rendering engine.


Havn't tried Colima, but podman is very simple to use and smells like docker cli.

On Apple Silicon machines however, latest podman version uses VM images which Rosetta doesn't work with, and hence it will use qemu for running amd64 containers. You can fix this by either installing podman 5.5 or create the VM from and older image [1]. My only complaint here is that the stock machine images are pretty large (~1G )

If you use containers to run tools that create files in your host (i.e. build tools), then you can use your host username as the default in the VM (machine init --username $(id -un)), and then run containers with --userns=keep-id. That way the the container command starts with the same username and uid as you host user - this is pretty tricky to get working with docker, from my experience.

We use Bazel as our build tool and we create a lot of images based on shared layers. Bazel produces oci layout directories that contain descriptors and symlinks to the actual layer tars. Podman can start a container "directly" from these directories[2], which speeds up image testing considerably, since it can detect known layers immediately. With docker you have to stream a tarball with all the layers and descriptors to the docker daemon, only for it to discover that it already knows most of the layers.

[1] https://docs.podman.io/en/latest/markdown/podman-machine-ini... - machine images https://quay.io/repository/podman/machine-os

[2] podman run oci://<path to oci-layout-dir>


I used colima cli on M1-M2 Mac. A few memory related settings were required as some of old apps were huge. But apart from that it worked great. Nothing bad podman, just preferred colima.


I tried colima once and couldn't get it to do what I wanted. Maybe just a missing shim, maybe our setup with docker-compose for integration tests. (I'm usually on linux, so maybe my lack of mac experience also played a role)

Zero problems with Podman Desktop.


Brew install podman? CLI only, no lima/colima or gui required.


I'm the same. I just use Docker/Podman from the terminal. I know some people really like the GUI but I've never been able to find a workflow better than the cli with some scripts or compose.

Cool for Podman Desktop though.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: