Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev Containers on Mac silicon #4224

Closed
mz-zmsoft opened this issue Dec 21, 2020 · 5 comments
Closed

Dev Containers on Mac silicon #4224

mz-zmsoft opened this issue Dec 21, 2020 · 5 comments
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality mac Issue on mac
Milestone

Comments

@mz-zmsoft
Copy link

I can not execute any docker command like Remote-Containers: Reopen in container

VSCode reports immediately the message Docker returned an error. Make sure the Docker daemon is running.

Dev Containers Log

[388 ms] Remote-Containers 0.154.1 in VS Code 1.53.0-insider (4a875e23d20b64504a818834f3fa4c40adb8d480).
[595 ms] Start: Run: git rev-parse --abbrev-ref --symbolic-full-name @{u}
[43841 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[43912 ms] spawn docker ENOENT

Output when executing docker version manually.

docker version --format {{.Server.APIVersion}}
1.41

Output in developer tools (hope this helps)

console.ts:137 [Extension Host] Error: spawn docker ENOENT
	at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
	at onErrorNT (internal/child_process.js:469:16)
	at processTicksAndRejections (internal/process/task_queues.js:84:21) (at c (/Users/admin/.vscode-insiders/extensions/ms-vscode-remote.remote-containers-0.154.1/dist/extension.js:1:697060))
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: spawn docker ENOENT (at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1100:774)
console.ts:137 [Extension Host] stack trace: Error: spawn docker ENOENT
	at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
	at onErrorNT (internal/child_process.js:469:16)
	at processTicksAndRejections (internal/process/task_queues.js:84:21) (at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1100:853)
log.ts:197   ERR spawn docker ENOENT: Error: spawn docker ENOENT
	at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
	at onErrorNT (internal/child_process.js:469:16)
	at processTicksAndRejections (internal/process/task_queues.js:84:21)

@Chuxel
Copy link
Member

Chuxel commented Dec 21, 2020

Docker support on Mac Silicon is still in early stages (docker/roadmap#142) and so we do not have specific plans or timing on adding support. Marking as a feature request and moving to correct repo. We also do not have pre-built ARM images. (See microsoft/vscode-dev-containers#558.)

@Chuxel Chuxel transferred this issue from microsoft/vscode-dev-containers Dec 21, 2020
@Chuxel Chuxel added feature-request Request for new features or functionality containers Issue in vscode-remote containers mac Issue on mac labels Dec 21, 2020
@chrmarti chrmarti modified the milestones: Backlog Candidates, Backlog Dec 22, 2020
@chrmarti
Copy link
Contributor

@mz-zmsoft It looks like docker is not on the PATH when run from within VS Code. Try setting the absolute path to it in the user settings:
image

@mz-zmsoft
Copy link
Author

thank you for fast feedback, @chrmarti. Remote Container starts as expected, now.

Got some compile issues. Think it's a docker problem now.

Bildschirmfoto 2020-12-22 um 16 04 38

@chrmarti
Copy link
Contributor

Thanks @mz-zmsoft. The extension should be independent of the platform. I will therefore close this issue, but please open new issues for any problems you encounter.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality mac Issue on mac
Projects
None yet
Development

No branches or pull requests

4 participants
@Chuxel @chrmarti @mz-zmsoft and others