Live data from Hacker News

Docker for Mac Without Docker Desktop

github.com

81–90 of 198 posts

Re: Docker for Mac Without Docker Desktop

#81
post #70
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/

Quoted post unavailable.

> Iirc, a 2018 stackoverflow survey of what devs use had 50% on windows, 40% on Linux and 10% on mac.

You needn't rely on your memory, the survey is still available [0]. FWIW, it doesn't seem to contain a question about the OS where development takes place, only about the targets[1]. The top answers were:

Linux 48.3%

Windows Desktop or Server 35.4%

Android 29.0%

AWS 24.1%

Mac OS 17.9%

[0] https://insights.stackoverflow.com/survey/2018/

[1] "Linux and Windows Desktop or Server are the most common choices that our respondents say they have done development work for this year." (emphasis mine)

Re: Docker for Mac Without Docker Desktop

#82
post #81
post #70

Earlier quoted context omitted.

Quoted post unavailable.

> Iirc, a 2018 stackoverflow survey of what devs use had 50% on windows, 40% on Linux and 10% on mac. You needn't rely on your memory, the survey is still available [0]. FWIW, it doesn't seem to contain a question about the OS where development takes place, only about the targets [1]. The top answers were: Linux 48.3% Windows Desktop or Server 35.4% Android 29.0% AWS 24.1% Mac OS 17.9% [0] https://insights.stackoverf…

oh wow he completely misrepresented that stat.

Re: Docker for Mac Without Docker Desktop

#83
post #70
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/

Quoted post unavailable.

I have a simple one for ya... Use docker and Vmware on the same windows machine.

Re: Docker for Mac Without Docker Desktop

#84

Earlier quoted context omitted.

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?

I haven't tested it, but Lima purports to support it: https://github.com/lima-vm/lima/blob/master/docs/multi-arch....

Give https://github.com/abiosoft/colima

A try, I’ve been using it for a few months on both m1 and x64.

It works really well.

Re: Docker for Mac Without Docker Desktop

#85

what about lima? it seems more easier to get. https://github.com/lima-vm/lima

I’m in the process of changing our local development containerisation strategy within the business from Docker for Desktop to Lima. So far it’s been absolutely flawless.

Re: Docker for Mac Without Docker Desktop

#86
post #61
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/

Although just today I was having some Windows containers hiccups, I am looking forward to the day that Microsoft doesn't require installing a third party solution (Docker) to use them.

Install a WSL machine. Install docker (or containerd, or whatever) in it. Install docker-cli on your host, then use `docker context` to use the server in WSL. 20min of effort if your Google fu is good.

If you need something like the docker desktop UI, check out portainer.

Re: Docker for Mac Without Docker Desktop

#87

Earlier quoted context omitted.

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.

Exactly.

After the November 2020 release of the M1 Macs, Docker and many developer tools were still not available and you would have to wait 6 - 8 months for Docker to be fully supported and out of beta for M1 Macs.

Not quite ideal to wait for your tools to be available on your machine for more months in order to do any work on it.

The smartest thing anyone would have done to save themselves from disappointment and frustration as a developer is by simply using your existing Intel Macs and 'waiting' for the software ecosystem to catch up with the Apple Silicon Macs.

Re: Docker for Mac Without Docker Desktop

#88
post #67
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…

I use kubernetes for pushing stuff to AWS EKS, and it is great. The problem I found with minikube and other Kubernetes based "alternatives" to Docker Desktop (including podman) is that they are not compatible with Docker Compose. There are a * a lot * of "solved problems" via docker-compose.yml files, and all of my past companies have used it. I've tried some docker-compose to k8s migration tools, but the amount of c…

Nerdctl[1] (for containerd) works fine with docker-compose.yml for my purposes (which are not much). The only issue I encountered was with environment variable substitution not working the same as docker-compose, but I didn't look hard for a solution and edited my compose file

1. https://github.com/containerd/nerdctl mine came bundled with Rancher desktop, and 'nerdctl compose up' is all I've needed

Re: Docker for Mac Without Docker Desktop

#89

Earlier quoted context omitted.

Podman works with docker-compose 1.x only and needs some finagling to work. I have this wrapper script as podman-compose #!/bin/bash set -e tmpdir=$(mktemp -d) port=$(podman system connection ls | grep -Eo 'localhost:\d+' | head -1 | cut -d: -f2) [[ -n $port ]] || exit 1 ssh -fnNT -L"$tmpdir/podman.sock":/run/user/1000/podman/podman.sock -i ~/.ssh/podman-machine-default ssh://core@localhost:"$port" -o StreamLocalBind…

Afaik podman-compose doesn't support "docker compose run" to do one-off stuff in a new container? Is there some alternative? I do it all the time now, have the entire dev flow dockerized. So I run tests, lints, fixers, migration etc all through docker compose.

To be clear: this isn’t the actual podman-compose project, just a wrapper to make docker-compose work with podman-machine. That said, I just tried to do a run and it didn’t work. It’s not part of my workflow though so I haven’t encountered it before and thus haven’t really looked into it.

Re: Docker for Mac Without Docker Desktop

#90
post #81
post #70

Earlier quoted context omitted.

Quoted post unavailable.

> Iirc, a 2018 stackoverflow survey of what devs use had 50% on windows, 40% on Linux and 10% on mac. You needn't rely on your memory, the survey is still available [0]. FWIW, it doesn't seem to contain a question about the OS where development takes place, only about the targets [1]. The top answers were: Linux 48.3% Windows Desktop or Server 35.4% Android 29.0% AWS 24.1% Mac OS 17.9% [0] https://insights.stackoverf…

It does have stats for Developers' Primary Operating System[0]:

Windows 49.9%

MacOS 26.7%

Linux-based 23.2%

BSD/Unix 0.2%

[0] https://insights.stackoverflow.com/survey/2018/#technology-_...

Post reply on HN