-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow using Podman driver on Mac and Windows #12547
Comments
Podman, just like Docker Engine, is a Linux program. So it needs a different offering, similar to Docker Desktop (i.e.with a VM) Currently that is not ready, the offering from Red Hat is an "OpenShift Desktop" that runs OpenShift instead (it is called "CRC") You can use "lima" perhaps: The original report is here: But using a VM driver ( In the future it might be possible to use the integrated CoreOS version, but it might be somewhat "bigger" than the Minikube OS.
|
I have created this issue because a few days ago Podman released a version, which works on macOS (they say, that it works on Windows too): https://podman.io/blogs/2021/09/06/podman-on-macs.html. From the user perspective, under the hood, it works similar to Docker Desktop: it creates a tiny virtual machine with qemu and runs in it. Even though it should not work on M1 Mac, I have run docker container with it with M1 Mac! Unfortunately, If minikube uses Podman as an external command on Linux, then maybe it is possible to unblock Podman on other OSes? |
There are multiple ways to run podman-remote from windows and macos, but none that are ready for minikube just yet... I'm not so sure about "tiny" though, this new machine is about 10x bigger than the old machine and 2x the size of Fedora |
Yeah, that is what that other story was about... We might do something similar for Docker, to use an Open Source version of it |
What a pity!
Probably there will be a price to pay if You want to have an automated solution for Mac/Windows. Then users can decide if they want to manage their own VM or to use bundled on. If Podman is not ready yet, I guess this issue should be closed? |
We can leave it open, there are some new additions that makes it a bit different from the old one (#8003) which was more DIY Right now there is no storage (shared with the host) in the new Podman Machine, so that feature probably needs to fixed first But the ports publishing is (almost) fixed, or will be in the next release. And support for arm64 on Mac is coming, as you noted. Meanwhile, there are lots of issues with both the container runtime (CRI-O) and the container engine (podman2) to be fixed... |
@mateka : it would also be useful to know, why you think that "podman" would be a better driver than "docker" or "hyperkit" ? It is possible that the best solution would be a QEMU driver for minikube, talking directly to the Virtualization.framework (hvf) The main reason why people like these "docker-in-docker" drivers, is because it goes faster* to delete and start new clusters. When it comes to the casual user* with just one single-node cluster, it adds complexity and startup time compared to a VM. * assuming that the virtual machine is running already... * on Mac or Win, that is. on Linux, it's another story... |
I was a user of Docker Desktop. It was nice to not have to think about VM and have everything ready to use after booting my machine. After licensing changes, I have decided to look for an alternative to Docker Desktop (I am using my private MacBook when working remotely for my employer. On it I had Docker Desktop installed for private learning, but I do not want to think if it is legal or not if I am not paying for Docker Desktop). If I understand correctly, to use docker I would have to create a separate VM and manage it. Maybe, when QEMU in brew would be working on M1, then it would be fine (but learning all correct parameters would be a task!). Now, for VMs I am using UTM, but having two (unneeded!) windows floating around to run a local Kubernetes cluster would be anoing! Because I am using M1 Mac, "hyperkit" is not usable by me: moby/hyperkit#303 (comment). So, I have thought: "If the preferred driver for minikube is Docker, then maybe Podman will be the best alternative". Moreover, maybe all settings (sharing directories and network configuration) will be working out of the box. |
Currently, there is only support for Docker Machine which makes it more similar to the previous generation (Docker Toolbox). There are still some issues with M1, even if hvf support just got merged for QEMU. But Docker has deprecated* their HyperKit... * https://www.docker.com/blog/the-magic-behind-the-scenes-of-docker-desktop/
Paying the $7/month is probably the easiest short term, but there are some nice Open Source alternatives - like for next year Note: the new Podman Machine is also based on QEMU, and this |
I added a PR to "allow" it, and some instructions on how to start the VM.... Apparently is currently broken*, but hopefully fixed in again Podman 3.4.0 ? All containers with networks are broken with this FCOS, not just minikube. |
Steps to reproduce the issue:
minikube start --driver=podman
on Windows/MacThe text was updated successfully, but these errors were encountered: