Live data from Hacker News

Docker for Mac Without Docker Desktop

github.com

41–50 of 198 posts

Re: Docker for Mac Without Docker Desktop

#41
post #18
post #10

One of the past maintainers of minikube here. Minikube, while targeted towards Kubernetes developers, also provides all the features you'd want here. It also takes away most of the pain from virtual machine management w/ native hypervisors. If you're looking for customizability (boot image, docker version, container runtime), minikube is probably your best bet. It even comes with some rudimentary file-sharing and por…

Huh, I thought kind was the spiritual successor to minikube (which I used fondly years ago). When should one reach for minikube over kind today?

I prefer Minikube over Kind, because Minikube supports a lot more options and features, and has integrated the same features as Kind. Kind has not had a new release for almost a year.

Re: Docker for Mac Without Docker Desktop

#43

"Motivation: Docker for Mac was proving to be a workflow pain rather than a workflow gain." I feel that pain. I switched from a Linux box to a Mac Mini for ALMOST all the work I do. I just couldn't take the pain, now when I need to do my Docker work, I just flip back to my Linux box. I have a Logi keyboard and Mouse with that 3 device button option, and a monitor with a few inputs, so I just turn on the ol' Linux box…

> I have a Logi keyboard and Mouse with that 3 device button option, and a monitor with a few inputs, so I just turn on the ol' Linux box, press a few buttons, and I'm there.

Install Barrier on both Mac and Linux, get an extra monitor, and then you can seamlessly work on both system at once as if it's a single computer with multiple monitors. Don't even need to press that switch button on your keyboard and mouse.

https://github.com/debauchee/barrier

Re: Docker for Mac Without Docker Desktop

#44

I use Rancher Desktop as an alternative to Docker Desktop. It’s alright.

I just pulled it (and switched to dockerd as default container runtime to use 'docker') - it seems to work as a great swap for docker desktop on mac. I like that volumes work well vs podman. Nice that you an trivy scan an image, etc.

Have you hit any sharp edges yet? I imagine there might be a few. Anything you can share would be great

Re: Docker for Mac Without Docker Desktop

#45

This won't work on the new M1 macs since it uses VirtualBox

Yeah :( Ever since I switched to an M1, I haven't found a way to reliably build and run x86_64 containers on it. Docker desktop with Qemu is not just painfully slow, it's also very buggy and some containers just can't be built without crashing. Is there any alternative?

My organization decided to hold off on purchasing M1 MacBooks for developers until they're better supported by third party software. Too much stuff just crashes or doesn't work well, even with QEMU and Rosetta.

Re: Docker for Mac Without Docker Desktop

#46
post #37

I know people doing docker dev are generally targeting a Linux of some sort, but why the heck doesn't the macOS kernel support native containerization? Come on Apple. Microsoft can do it. edit: this seems like a new development since my last whine/complaint on this topic: https://macoscontainers.org/

Because most people want to run Linux containers (to get the same environment as their servers)

Re: Docker for Mac Without Docker Desktop

#48
It’s not local docker, but

    export DOCKER_HOST=ssh://user@some.nix.box
does the trick for like 90 percent of my local docker workflows. Big gaps are local volumes, remembering to look for ports exposed on the remote box instead of localhost, and VPN access (if the remote box box isn’t on the right network)

Otherwise its a treat. No local storage eaten up, no cores pinned to 100%, no reserved memory, no (additional) VM layer, …

Re: Docker for Mac Without Docker Desktop

#49

    5. Install Docker Machine docker-machine
The last time one of these discussions came up and a similar solution was provided, someone pointed out that 'docker-machine' is not a dependable solution. I can't remember the exact reason, nor can I find the link, but it was something along the lines of Docker making it proprietary or abandoning the project.

Can anyone provide any more detail about the state of 'docker-machine' or help clarify any issues with hitching your wagon to these 'docker-machine' solutions?

Re: Docker for Mac Without Docker Desktop

#50
post #37

I know people doing docker dev are generally targeting a Linux of some sort, but why the heck doesn't the macOS kernel support native containerization? Come on Apple. Microsoft can do it. edit: this seems like a new development since my last whine/complaint on this topic: https://macoscontainers.org/

> why the heck doesn't the macOS kernel support native containerization?

Because Apple has no plans of growing their server OS marketshare. I know there are benefits of using namespaces (containers) in the desktop market, but they don't sell iMacs/MBPs. Exterior design and heavy marketing is their sales strategy.

Post reply on HN