Dev Containers: Rebuild and Reopen in Container- fails without error information when trying to use compose
SO post for this: https://stackoverflow.com/questions/74866875/trying-to-use-devcontainers-with-a-docker-compose-file-immediately-fails
- VSCode Version: 1.73.1
- Local OS Version: Darwin macbookpro306.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64 arm Darwin
- Remote Extension/Connection Type: devcontainer with compose
Steps to Reproduce:
- Use a compose file
- Fail
I'm opening as a bug because I can't even figure out where error logging is going. I know compose works, but I have no way of knowing why my setup is not working because there is no useful error info.
I get this error immediately: Command 'Dev Containers: Rebuild and Reopen in Container' resulted in an error (Command failed: /private/var/folders/vw/m_7gmll54yb0cnfp687dxh740000gq/T/AppTranslocation/1485CA8A-FFAA-4796-BA55-5928911F8CB3/d/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/me/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/me/myfolder/myproject --log-level debug --log-format json --config /Users/me/myfolder/myproject/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true)
Is my devcontainer config wrong? Is my compose file wrong? What compose command is it even running? Where do I go to use useful error information so I can troubleshot without 100% guess work? Looks like my container config might be wrong?
Building and running with compose works without issues. Does my compose service need to be setup with an entrypoint that keeps it running?
Below are my configs
// container config
{
"name": "Python 3",
"dockerComposeFile": [
"../docker-compose.yml"
],
"service": "devcontainer_testenv",
"workspaceFolder": "/app",
"shutdownAction": "stopCompose"
}
# compose file
version: "3.9"
services:
devcontainer_toolset:
platform: linux/amd64
image: gcr.io/${PROJECT}/${IMAGE_NAME}:devcontainer_toolset
build:
context: .
dockerfile: "Dockerfile.toolset"
# Use official vscode dev container image
args:
RUNTIME_IMAGE: mcr.microsoft.com/devcontainers/python:0-3-bullseye
devcontainer_testenv:
platform: linux/amd64
image: gcr.io/${PROJECT}/${IMAGE_NAME}:devcontainer_testenv
depends_on:
- devcontainer_toolset
build:
context: .
dockerfile: "Dockerfile.testenv"
# Use toolset build from devcontainer image
args:
RUNTIME_IMAGE: gcr.io/${PROJECT}/${IMAGE_NAME}:devcontainer_toolset
secrets:
- pypi_conf
volumes:
- "${HOME}/.aws/credentials:/root/.aws/credentials"
- "${HOME}/.config/gcloud:/tmp/.config/gcloud"
secrets:
pypi_conf:
file: "${HOME}/.config/pip/pip.conf"
I also tried the sample here and I immediately get an error: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose

Never had trouble before - I've received a new Mac today, I've just installed Docker Desktop and Visual Studio Code... and I'm getting this same error.
My previous Mac uses the same extension version (v0.266.1), and it all works fine. It's using a previous version of VS Code though: Version: 1.74.1 Commit: 1ad8d514439d5077d2b0b7ee64d2ce82a9308e5a Date: 2022-12-14T10:32:34.075Z (6 days ago) Electron: 19.1.8 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Darwin arm64 22.1.0 Sandboxed: No
My new Mac VS Code version: Version: 1.74.2 (Universal) Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161 Date: 2022-12-20T10:26:09.430Z (16 hrs ago) Electron: 19.1.8 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Darwin arm64 21.6.0 Sandboxed: No
Tried installing the same version on the new Mac, with no luck. This is the output when I run the command causing the error:
vov@Mayhem-Pro-M2 ~ % /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Code\ Helper.app/Contents/MacOS/Code\ Helper --ms-enable-electron-run-as-node /Users/vov/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/vov/github.com/someorg/somerepo --log-level debug --log-format json --config /Users/vov/github.com/someorg/somerepo/.devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[1220/205441.911419:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
Warning: 'workspace-folder' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'log-level' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'log-format' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'config' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'include-merged-configuration' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'mount-workspace-git-root' is not in the list of known options, but still passed to Electron/Chromium.
[1220/205441.998456:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205442.027775:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205442.035770:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/bfbc7a9b-8a38-4aaa-bfcf-578b4eb2ba78: No such file or directory (2)
[1220/205442.035953:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[main 2022-12-21T02:54:42.052Z] update#setState idle
[1220/205442.149149:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205442.154730:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[1220/205442.829092:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: bfbc7a9b-8a38-4aaa-bfcf-578b4eb2ba78
[1220/205442.832831:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/5a423eaa-2c04-4469-8171-0b06594abbf1: No such file or directory (2)
[1220/205443.042958:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: 5a423eaa-2c04-4469-8171-0b06594abbf1
[8469:1220/205447.196587:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=5
[8469:1220/205447.204959:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[1220/205447.240556:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205447.244401:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205447.339701:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205447.344946:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/9563cc5d-608c-4cdc-8599-2d83736daaf1: No such file or directory (2)
[1220/205447.345003:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205447.346456:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[1220/205447.372459:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205447.443696:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205447.448934:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205447.450544:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=5
[1220/205447.482059:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205447.514126:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: 9563cc5d-608c-4cdc-8599-2d83736daaf1
[1220/205447.514787:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/e9ecbc4d-412f-4fed-9048-0614ae016acc: No such file or directory (2)
[1220/205447.549173:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205447.554496:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205447.555933:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[1220/205447.581988:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205447.653718:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205447.658805:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205447.660321:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=5
[1220/205447.665931:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: e9ecbc4d-412f-4fed-9048-0614ae016acc
[1220/205447.666785:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/47e3eeef-3ae7-4202-a350-1b888d54ff9c: No such file or directory (2)
[1220/205447.691405:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205447.759943:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205447.764983:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205447.766414:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[1220/205447.792805:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205447.808096:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: 47e3eeef-3ae7-4202-a350-1b888d54ff9c
[1220/205447.808678:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/347e0b1d-18e0-485a-a12e-5696e2c4cce2: No such file or directory (2)
[1220/205447.865175:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205447.870490:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205447.871994:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=5
[1220/205447.899036:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205447.957950:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: 347e0b1d-18e0-485a-a12e-5696e2c4cce2
[1220/205447.958690:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/3252e93e-d7a2-4bd6-a6b3-17877beed12f: No such file or directory (2)
[1220/205447.970248:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205447.975543:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205447.977055:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[1220/205448.003150:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205448.076596:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205448.081996:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205448.083539:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=5
[1220/205448.109947:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205448.127309:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: 3252e93e-d7a2-4bd6-a6b3-17877beed12f
[1220/205448.127882:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/3dd92f95-5c06-4ac6-96d1-7da73e0c2f9d: No such file or directory (2)
[1220/205448.183340:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205448.188397:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205448.189852:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[1220/205448.215722:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205448.284742:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205448.286611:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: 3dd92f95-5c06-4ac6-96d1-7da73e0c2f9d
[1220/205448.287552:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/da59ee36-bd2e-4375-ad75-98345c532526: No such file or directory (2)
[1220/205448.290136:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205448.291710:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=5
[1220/205448.318638:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205448.386684:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205448.391727:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205448.393210:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[1220/205448.418997:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205448.467652:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: da59ee36-bd2e-4375-ad75-98345c532526
[1220/205448.468406:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/8d17cef8-5fb1-4d32-a075-1f4f2c0cb499: No such file or directory (2)
[1220/205448.490088:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205448.495306:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205448.496986:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=5
[1220/205448.523598:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205448.593136:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205448.598276:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205448.599896:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[1220/205448.612672:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: 8d17cef8-5fb1-4d32-a075-1f4f2c0cb499
[1220/205448.613311:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/a0ee1094-6ef4-4c04-a451-8ee4c6753d9f: No such file or directory (2)
[1220/205448.626079:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205448.696538:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205448.701716:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205448.703270:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=5
[1220/205448.730375:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205448.763847:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: a0ee1094-6ef4-4c04-a451-8ee4c6753d9f
[1220/205448.764801:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/a8c7a40b-0a96-49c0-9760-b519e9efee2a: No such file or directory (2)
[1220/205448.802466:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205448.807621:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205448.809276:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[1220/205448.835891:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
[1220/205448.906264:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205448.911974:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[8469:1220/205448.913642:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=5
[8469:1220/205448.913655:FATAL:gpu_data_manager_impl_private.cc(450)] GPU process isn't usable. Goodbye.
[1220/205448.922731:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: a8c7a40b-0a96-49c0-9760-b519e9efee2a
[1220/205448.923180:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/09b14fbc-1a7a-4d7c-ada0-99e3aa6cd754: No such file or directory (2)
[1220/205449.007798:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205449.013273:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
[1220/205449.112578:WARNING:in_range_cast.h(38)] value -634136515 out of range
[1220/205449.117542:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: 09b14fbc-1a7a-4d7c-ada0-99e3aa6cd754
[1220/205449.118242:ERROR:directory_reader_posix.cc(42)] opendir /Users/vov/Library/Application Support/Code/Crashpad/attachments/656ff40e-0044-428d-a6a9-f4aa89217466: No such file or directory (2)
[1220/205449.119275:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
zsh: trace trap --ms-enable-electron-run-as-node read-configuration --workspace-folder
vov@Mayhem-Pro-M2 ~ % [1220/205449.269780:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: 656ff40e-0044-428d-a6a9-f4aa89217466
vov@Mayhem-Pro-M2 ~ %
As of yesterday this is happening in my projects as well when using apple silicon. This project previously worked and just started failing in the last few days.
Looking at everyones logs I'm inclined to think this only affect ARM64 based machines like the Apple M1. I've also tried downgrading the devcontainer plugin but it didn't help.
Doing more research I see the issue starts with the Code Helper binary
$ "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)" --help
[1221/130203.686937:ERROR:directory_reader_posix.cc(42)] opendir /Users/ec2-user/Library/Application Support/Code/Crashpad/attachments/42219f0c-d3ef-4d97-96a1-7c83f0eaa8b5: No such file or directory (2)
[1221/130203.686975:WARNING:crash_report_exception_handler.cc(310)] UniversalExceptionRaise: (os/kern) failure (5)
zsh: trace trap --help
$ [1221/130207.481578:INFO:crash_report_upload_thread.cc(321)] Report uploaded to AppCenter. Report: 42219f0c-d3ef-4d97-96a1-7c83f0eaa8b5
Weird thing is, it's working on my M1 mac, so it isn't an architecture problem... I suspect newer builds of VSCode have a problem with the Electron Code Helper... Maybe my mac still has a previous helper whereas in the newer mac the helper it's either unusable or even not there in the first place?
Workaround
I completely removed VSCode - including dangling config files I found at ~/Libraries, then I downloaded & installed "October 2022 (version 1.73)" (apple silicon version).
Tried loading my app again, and it's working
Visual Studio will update itself after the first run, back to version "November 2022 (version 1.74)", but it will still work.
I'm now sure that a clean install of "November 2022 (version 1.74)" is the problem. I suspect there's a file missing on it that has been present on previous versions, and the update doesn't overwrite/remove the file, hence why it's working.
I also tried the sample here and I immediately get an error: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose
That repository actually has a problem - the docker compose file referred in the devcontainer config doesn't exist.
https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose can be used when you already have a docker-compose.yml (that's why it comes without a docker-compose.yml).
Could those still seeing this issue append their log from when this fails? (F1 > Dev Containers: Show Container Log)
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
@chrmarti Here's my log from the same failure with VS Code version 1.74.2 -
[419498 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[419571 ms] 1.41
[419586 ms] Start: Run: /snap/code/116/usr/share/code/code --ms-enable-electron-run-as-node /home/lauren/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/lauren/REPO_PATH --log-level debug --log-format json --config /home/lauren/REPO_PATH/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true --terminal-columns 213 --terminal-rows 28
[419882 ms] (node:17915) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[419882 ms] (Use `code --trace-deprecation ...` to show where the warning was created)
[419885 ms] @devcontainers/cli 0.25.2. Node.js v16.14.2. linux 5.4.0-136-generic x64.
[419885 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/home/lauren/REPO_PATH
[419923 ms] Start: Run: docker-compose version --short
[420167 ms] Error: Command failed: docker-compose version --short
at _c (/home/lauren/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js:1884:904)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async qO (/home/lauren/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js:1805:20585)
at async Cue (/home/lauren/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js:2020:32118)
[420171 ms] Exit code 1
EDIT: In my case it was an issue with the six Python package, as running docker-compose version --short yielded a ModuleNotFoundError: No module named 'six' error, and installing the package with pip resolved the issue.
I can't reproduce it anymore... what the??
If it is helpful for others, I landed here after following the VS Code docs. It failed to open in a container but did not provide any meaningful error. Thanks to @chrmarti for mentioning how to see the logs (pasted below). This determined the root cause, which is javascript-node:0-12 no longer exists.
To solve this, I used javascript-node to get the latest. If you prefer to specify a specific version, see here for available node versions.
[59910 ms] Dev Containers 0.266.1 in VS Code 1.74.3 (97dec172d3256f8ca4bfb2143f3f76b503ca0534).
[59909 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[60000 ms] 1.41
[60015 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/codie.mullins/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/codie.mullins/Code/learn-devcontainers --log-level debug --log-format json --config /Users/codie.mullins/Code/learn-devcontainers/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[60289 ms] (node:15341) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[60289 ms] (Use `Code Helper --trace-deprecation ...` to show where the warning was created)
[60292 ms] @devcontainers/cli 0.25.2. Node.js v16.14.2. darwin 22.2.0 x64.
[60292 ms] Start: Run: git rev-parse --show-cdup
[60301 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/codie.mullins/Code/learn-devcontainers
[60377 ms] Start: Run: docker inspect --type image mcr.microsoft.com/devcontainers/typescript-node:0-12
[61059 ms] Error fetching image details: No manifest found for mcr.microsoft.com/devcontainers/typescript-node:0-12.
[61059 ms] Start: Run: docker pull mcr.microsoft.com/devcontainers/typescript-node:0-12
Error response from daemon: manifest for mcr.microsoft.com/devcontainers/typescript-node:0-12 not found: manifest unknown: manifest tagged by "0-12" is not found
[63057 ms] []
[63057 ms] Error: No such image: mcr.microsoft.com/devcontainers/typescript-node:0-12
[63057 ms] Command failed: docker inspect --type image mcr.microsoft.com/devcontainers/typescript-node:0-12
[63064 ms] Exit code 1
@vovimayhem @chrmarti
issue, trying to setup with "Anaconda (Python 3)", somewhere in the log, saw a line mentioning the platform is not supported
following fixed the issue,
- replaced the existing installation of vscode with one specific for arm64 and
- wrote my own Dockerfile and devcontainer file (with least config)
