Live data from Hacker News

Apple Silicon M1 Chips and Docker

docker.com

11–20 of 129 posts

Re: Apple Silicon M1 Chips and Docker

#11
post #2

This doesn't really clear up any of the questions I have. Will docker running on ARM run docker containers from images built for x86? Will docker running on ARM be able to build images for x86?

Answer your own question: Can Docker on ARM run x86? Can Docker on x86 run ARM?

If not, then why expect Apple ARM to run x86?

Re: Apple Silicon M1 Chips and Docker

#12
post #2

This doesn't really clear up any of the questions I have. Will docker running on ARM run docker containers from images built for x86? Will docker running on ARM be able to build images for x86?

Right. if it is building it's own linux kernel and build container it defeats the purpose of having a docker....

Running docker containers on Darwin already required you to run a Linux kernel, though?

Re: Apple Silicon M1 Chips and Docker

#13
post #2

This doesn't really clear up any of the questions I have. Will docker running on ARM run docker containers from images built for x86? Will docker running on ARM be able to build images for x86?

The question is: why even care?

Use an Arm image. For docker, it makes little to no difference

Re: Apple Silicon M1 Chips and Docker

#14

If Docker can run on Raspberry Pi's ARM chips, it can run on Mac ARM chips. I expect we'll see this working very soon after the new Macs start to arrive.

Docker is architecture specific though. The meaningful question is whether it can run the same docker images as it did on the previous Mac hardware or not.

Re: Apple Silicon M1 Chips and Docker

#15

Earlier quoted context omitted.

Right. if it is building it's own linux kernel and build container it defeats the purpose of having a docker....

Running docker containers on Darwin already required you to run a Linux kernel, though?

Yes but this was possible through virtual machine(virtualbox)

Re: Apple Silicon M1 Chips and Docker

#17
Sounds a bit like Docker is at a loss. Caught between a closed source OS (rock) and an architecture change (hard place).

Ideally, they could leverage Rosetta2 to run x64 containers under macOS on Apple Silicon ... but I guess Apple isn't playing ball (because otherwise they would have probably announced it at WWDC).

At this point I see an Apple Silicon based Mac is just a consumer device, I don't think I'm going to be able to use it in anger for development work at the moment (other than for Mac consumer apps).

Not really sure what Apple have to lose here ... but if Macs with Apple Silicon are not a viable dev platform for "mainstream" containers, then that's going to drive developers to Linux (or Windows).

Re: Apple Silicon M1 Chips and Docker

#18
post #2

This doesn't really clear up any of the questions I have. Will docker running on ARM run docker containers from images built for x86? Will docker running on ARM be able to build images for x86?

The question is: why even care? Use an Arm image. For docker, it makes little to no difference

that mean you need to have an arm based server for deployment of your code / services.

Re: Apple Silicon M1 Chips and Docker

#19
post #2

This doesn't really clear up any of the questions I have. Will docker running on ARM run docker containers from images built for x86? Will docker running on ARM be able to build images for x86?

Answer your own question: Can Docker on ARM run x86? Can Docker on x86 run ARM? If not, then why expect Apple ARM to run x86?

Apple ARM can run x86 under Rosetta 2. The question is whether that can happen under Docker.

Re: Apple Silicon M1 Chips and Docker

#20
post #2

This doesn't really clear up any of the questions I have. Will docker running on ARM run docker containers from images built for x86? Will docker running on ARM be able to build images for x86?

The question is: why even care? Use an Arm image. For docker, it makes little to no difference

That requires that ARM images are available, which will take time and always have a disconnect. It also violates the idea of being able to run the exact same image on your laptop (ARM Mac) and in prod (x86 server).
Post reply on HN