News for hackers. Stuff that matters.
Re:Docker for Mac M1 RC by f6v on Friday March 19, 2021 @07:43AM (#26512176)
I heard WSL2 was no good.
Re:Docker for Mac M1 RC by unicornfinder on Friday March 19, 2021 @07:59AM (#26512269)
Without more detail it's hard to say much that's useful but in my experience WSL2 has been nothing short of excellent. Also switched from Mac to Windows with WSL and the development experience is much better.
Re:Docker for Mac M1 RC by tyingq on Friday March 19, 2021 @08:13AM (#26512363)
People were frustrated mostly with 2 issues...

a) It doesn't play well with deep sleep mode, and crashes. Perhaps it's been fixed, I don't know, I just disabled deep sleep.

b) The networking is different than WSL1 and requires odd workarounds for things like X11 to work normally. I had to use a 192.168.1.x address for DISPLAY instead of localhost. Which required some VB scripting to reliably work for me.

Re:Docker for Mac M1 RC by dgellow on Friday March 19, 2021 @08:45AM (#26512618)
My main issue is the lack of support for serial (so, no USB support): https://github.com/microsoft/WSL/issues/2195.

Other that this I love Windows 10 + WSL2 as a dev environment.

Re:Docker for Mac M1 RC by tyingq on Friday March 19, 2021 @08:50AM (#26512669)
It's a little clunky, but you could use a Windows RFC2217 remote serial server with socat on the Linux side to make a virtual serial port tied to a real one. I've done this (albeit not with WSL), and it did work.

https://gist.github.com/DraTeots/e0c669608466470baa6c

Re:Docker for Mac M1 RC by tyingq on Friday March 19, 2021 @02:33PM (#26516834)
Too late to edit, but there's also an unapplied pull request that seems to make usb passthrough work:

https://github.com/microsoft/WSL2-Linux-Kernel/pull/45

Re:Docker for Mac M1 RC by rcarmo on Friday March 19, 2021 @02:27PM (#26516767)
I have WSL1 alongside WSL2 for this. WSL1 works fine with my FTDI adapters to flash ESP8266 and all.
Re:Docker for Mac M1 RC by discordance on Friday March 19, 2021 @09:43AM (#26513208)
VS Code with remote container dev on top of WSL2 works really well for me:

https://code.visualstudio.com/blogs/2020/07/01/containers-ws...

Re:Docker for Mac M1 RC by ryneandal on Friday March 19, 2021 @09:22AM (#26512974)
It's been flawless and I've been using it pretty extensively as a replacement for vagrant development VMs.

I believe one of the issues laptop-related, and I work exclusively on a desktop these days, so that was a non-issue for me.