nerves-project / nerves

Craft and deploy bulletproof embedded software in Elixir
http://nerves-project.org
Apache License 2.0
2.23k stars 189 forks source link

`nerves.system.shell` crashes on macos #977

Closed Noarkhh closed 3 months ago

Noarkhh commented 3 months ago

Environment

Current behavior

When running nerves.system.shell inside nerves_system_rpi4 I get the following error:

|Elixir.Docker| Starting Build... (this may take a while)

** (Mix) The Nerves Docker build_runner encountered an error while building:

-----
docker: Error response from daemon: error while creating mount source path '/host_mnt/private/tmp/com.apple.launchd.1KMZvn8mWg/Listeners': mkdir /host_mnt/private/tmp/com.apple.launchd.1KMZvn8mWg/Listeners: operation not supported.

-----

See /Users/noarkhh/Nerves/nerves_system_rpi4_ex_webrtc/build.log.

This has to be some problem with ssh forwarding to docker on macos, since when I removed ssh_agent() from this line and this line (although I doubt the second one matters) things started working again.

I think this might have something to do with this issue https://github.com/docker/for-mac/issues/410

fhunleth commented 3 months ago

Hi @Noarkhh - Could you try out #972 and see if it works for you?

Noarkhh commented 3 months ago

Hi @fhunleth, seems to work, thanks for the quick response!

fhunleth commented 3 months ago

@Noarkhh Thanks for following up on this! Always good to know that things work.