Live data from Hacker News

Docker fails to launch on Apple Silicon

github.com

191–200 of 281 posts

Re: Docker fails to launch on Apple Silicon

#191

Earlier quoted context omitted.

The Macbook Pro that is $1200 in the US is £1300 in the UK and 1449€ in France. Apple products are way more expensive outside of the US. Plus another 100 or 200 in adapters. It's beyond me why they would make a laptop with zero USB and zero HDMI ports. Total is $2000 when converted back in USD.

The new MacBooks have 2 USB ports.

One of them is used for charging, so you really only have one useable port. Still, TB3 dock should be able to provide enough ports for most people (at the expense of portability).

Re: Docker fails to launch on Apple Silicon

#192
I really don't understand why is this fuss.

TBH docker-on-mac is not that good. That is why I've most minimal config and just using to have some 'linux' time to time.

What I use is `docker context` command or DOCKER_HOST=ssh://user@host pattern.

env-var is more convenient for 'ephemeral' hosts. (It uses your own SSH-key to connect to host) And for static hosts (like staging machines) I use context.

Plus it uses native SSH client, so it supports ProxyJump or JumpServer or Bastion Host, forwarding, session-reuse, YubiKeys & whatnot.

So, I'd rather to have client on my laptop, having 1 or 2 medium sized hosts in Digitalocean, AWS, whatever place. (Some providers even gives you docker hosts with ssh access, like civo.com - disclaimer: I just started using them last weekend...)

PS: You cannot 'mount' your local folder to remote host. But you can 'build' your local folder on remote host. (Thanks to BuildKit / DOCKER_BUILDKIT=1)

Edit: I remembered that I've installed (compiled actually) docker-cli to my Android phone using Termux. You can't run daemon at all. The client gives some warnings at the start saying some things not right. But it works with those methods & variables...

Hint:

    $ go get -u -v github.com/docker/cli/cmd/docker
    # profit...

Re: Docker fails to launch on Apple Silicon

#193

I've been holding off on upgrading my MBP13 for a few years now because Apple was painfully slow to refresh it. I was ready to order the model that came out in May (with 32GB RAM) but then the rumour about ARM hit the internets so I kept waiting. Now (I guess always?), it's clear that Apple Silicon is not going to be a comfortable dev environment, at lest not for some and not for a while. JDK macos/aarch64 port is st…

I haven't used it with docker, but the remote development feature of VS Code is surprisingly good. You don't feel like anything is missing or slow compared to running on your own machine.

Re: Docker fails to launch on Apple Silicon

#194

Earlier quoted context omitted.

May I ask what linux you are using and how you got a Mac VM running? I tried myself and was able to get Catalina running on Ubuntu 20.04 using Openboot. But then Catalina updated itself and crashed after that. I wasn't able to reinstall MacOS successfully anymore, even starting from scratch. If you could help me out by pointing out which products/technologies you used and maybe a website describing step by step, that…

Ubuntu system. Firstly, I disabled updates, not because of Mac in particular, but I've had issues with Windows updates crashing before, so I don't eagerly update. Apart from that, standard QEMU process. This was the guide I used: https://www.funkyspacemonkey.com/how-to-install-macos-catali...

Thanks. I'll give it another try.

Re: Docker fails to launch on Apple Silicon

#195
post #94

Earlier quoted context omitted.

If you can burn the cash then go for it, but unless these laptops can support something other than MacOS I'm (with a sad expression) staying away from them. Obviously if you just make websites it doesn't matter but if I'm buying an ARM device I want to play with the bare metal (you can't even access performance counters in MacOS IIRC)

> Obviously if you just make websites it doesn't matter Websites in 2020 is not that simple. At my workplace, we use Docker extensively in our build pipelines

It's probably apples #1 tooling priority right now, though

Re: Docker fails to launch on Apple Silicon

#196

I've been holding off on upgrading my MBP13 for a few years now because Apple was painfully slow to refresh it. I was ready to order the model that came out in May (with 32GB RAM) but then the rumour about ARM hit the internets so I kept waiting. Now (I guess always?), it's clear that Apple Silicon is not going to be a comfortable dev environment, at lest not for some and not for a while. JDK macos/aarch64 port is st…

On twitter one of the Docker Eng. posted that they are at present working on docker support for Apple Silicon (sorry did not bookmark it so can't provide a link)

Re: Docker fails to launch on Apple Silicon

#197
post #87

Earlier quoted context omitted.

$2,000 is a stretch. You can get the high-end M1 Mini for about $1,200. A high-end M1 MBP for under $1,800.

The Macbook Pro that is $1200 in the US is £1300 in the UK and 1449€ in France. Apple products are way more expensive outside of the US. Plus another 100 or 200 in adapters. It's beyond me why they would make a laptop with zero USB and zero HDMI ports. Total is $2000 when converted back in USD.

Prices in France are TTC (Toutes Taxes Comprises, all taxes included), the VAT in France is 20% so if you take 20% off 1400€ you end up with 1159€ which is $1370. So in the end the MBP is a bit cheaper in France than in the US.

Re: Docker fails to launch on Apple Silicon

#198
I'm a bit lost. I was under the impression that Docker (and containerisation in general) works based on kernel namespaces, which, IIUC, is a way to instantiating distinct subsystems in the kernel, on demand. What does hardware support for virtualization have to do with it? I mean, for VMWare or VirtuaBox, yes, I can imagine; but does that matter for Docker? Can someone explain?

Re: Docker fails to launch on Apple Silicon

#199
post #142
post #94

Earlier quoted context omitted.

If you can burn the cash then go for it, but unless these laptops can support something other than MacOS I'm (with a sad expression) staying away from them. Obviously if you just make websites it doesn't matter but if I'm buying an ARM device I want to play with the bare metal (you can't even access performance counters in MacOS IIRC)

May I ask what do you enjoy with a Macbook not running MacOS? I don't like Apple devices myself but I understand that some people like the ecosystem as a whole. However I don't understand the point of a Mac without MacOS. The hardware is pretty much garbage compared to any laptop of the same price range, let alone high-end laptops like Thinkpads. (this is a honest question and I am not trying to troll or make fun of…

1. I'm not that much of a linux-guy but almost everything I derive pleasure from in programming is fairly close to the metal, e.g. microarchitectural benchmarking and tracing are probably the two things I've been doing the most recently and you can't even get close to them on MacOS. If I spend that much on a new ARM machine that's what I want to be doing

1.5) I like the GPL, apple doesn't

2. I like apple's hardware in a vacuum. As much as the company leaves a bad taste in my mouth (there is a deeply pretentious streak to Apple's approach to their users), they make nice cases and such.

Re: Docker fails to launch on Apple Silicon

#200

I'm a bit lost. I was under the impression that Docker (and containerisation in general) works based on kernel namespaces, which, IIUC, is a way to instantiating distinct subsystems in the kernel, on demand. What does hardware support for virtualization have to do with it? I mean, for VMWare or VirtuaBox, yes, I can imagine; but does that matter for Docker? Can someone explain?

Docker on Mac and Windows both use virtual machines to run a Linux OS, which then runs Docker normally.
Post reply on HN