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 container fails to start on M1 Mac #634

Open
whakey opened this issue May 18, 2022 · 1 comment
Open

Dev container fails to start on M1 Mac #634

whakey opened this issue May 18, 2022 · 1 comment

Comments

@whakey
Copy link

whakey commented May 18, 2022

  • VSCode Version: 1.67.1
  • OS Version: macOS Monterey Version 12.3.1
  • Extension Version: v1.25.9

Steps to Reproduce:

  1. Create new Edge solution
  2. Try to build & open in generated dev container
[25 ms] Remote-Containers 0.234.0 in VS Code 1.67.1 (da15b6fd3ef856477bf6f4fb29ba1b7af717770d).
[25 ms] Start: Resolving Remote
[35 ms] Setting up container for folder or workspace: /Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution
[40 ms] Start: Check Docker is running
[40 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[130 ms] Server API version: 1.41
[131 ms] Start: Run: docker volume ls -q
[194 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/MacOS/Electron /Users/villetahkavuori/.vscode/extensions/ms-vscode-remote.remote-containers-0.234.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/villetahkavuori/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder /Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution --workspace-mount-consistency cached --id-label vsch.local.folder=/Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution --id-label vsch.quality=stable --log-level debug --log-format json --config /Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[290 ms] remote-containers 0.234.0.
[290 ms] Start: Resolving Remote
[291 ms] Start: Run: git rev-parse --show-cdup
[298 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution --filter label=vsch.quality=stable
[373 ms] Start: Run: docker inspect --type container 8c798906260f
[436 ms] Start: Removing Existing Container
[436 ms] Start: Run: docker rm -f 8c798906260f41a5ade44ddc9d270930c0468d3f246285aa5fe0483c2dd1b47c
[510 ms] Start: Run: docker build -f /Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution/.devcontainer/Dockerfile -t vsc-edgesolution-b246b8ea3637cf0cd9a992c9df3fe101 /Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution/.devcontainer
[+] Building 0.6s (8/8) FINISHED                                                
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 860B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/d  0.5s
 => [internal] load build context                                          0.0s
 => => transferring context: 99B                                           0.0s
 => [1/3] FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-3.1@sha256  0.0s
 => CACHED [2/3] COPY library-scripts/*.sh /tmp/library-scripts/           0.0s
 => CACHED [3/3] RUN     apt-get update -y     && /bin/bash /tmp/library-  0.0s
 => exporting to image                                                     0.0s
 => => exporting layers                                                    0.0s
 => => writing image sha256:06d765ea9d65287d6874b8e88116791c5b36848c50667  0.0s
 => => naming to docker.io/library/vsc-edgesolution-b246b8ea3637cf0cd9a99  0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[1666 ms] Start: Run: docker inspect --type image vsc-edgesolution-b246b8ea3637cf0cd9a992c9df3fe101
[1733 ms] Start: Run: docker events --format {{json .}} --filter event=start
[1733 ms] Start: Starting container
[1733 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=/Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution,target=/workspaces/EdgeSolution,consistency=cached --mount source=ostf-bashhistory,target=/commandhistory,type=volume --mount source=dind-var-lib-docker,target=/var/lib/docker,type=volume --mount type=volume,src=vscode,dst=/vscode -l vsch.local.folder=/Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution -l vsch.quality=stable --init --privileged --entrypoint /bin/sh vsc-edgesolution-b246b8ea3637cf0cd9a992c9df3fe101 -c echo Container started
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
[2206 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution --filter label=vsch.quality=stable
Container started
[2287 ms] Start: Run: docker inspect --type container c0b1f76d9e57
[2344 ms] Start: Inspecting container
[2344 ms] Start: Run: docker inspect --type container c0b1f76d9e57622e59dda8814049294b6434c1d18a0708e28099cd0644194944
[2400 ms] Start: Run in container: /bin/sh
[2402 ms] Start: Run in container: uname -m
[2534 ms] x86_64
[2534 ms] 
[2534 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2552 ms] NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[2552 ms] 
[2552 ms] Start: Run in container: cat /etc/passwd
[2568 ms] Start: Run in container: test -f '/var/vscode-server/.patchEtcEnvironmentMarker'
[2571 ms] 
[2571 ms] 
[2571 ms] Exit code 1
[2572 ms] Start: Run in container: /bin/sh
[2573 ms] Start: Run in container: test ! -f '/var/vscode-server/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/vscode-server' && { > '/var/vscode-server/.patchEtcEnvironmentMarker' ; } 2> /dev/null
sed: couldn't flush stdout: Device or resource busy
[2694 ms] Start: Run in container: test -f '/var/vscode-server/.patchEtcProfileMarker'
[2694 ms] Stdin closed!
[2694 ms] Start: Run in container: test ! -f '/var/vscode-server/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/vscode-server' && { > '/var/vscode-server/.patchEtcProfileMarker' ; } 2> /dev/null
[2694 ms] Stdin closed!
[2697 ms] Start: Run: docker inspect --type container c0b1f76d9e57622e59dda8814049294b6434c1d18a0708e28099cd0644194944
[2786 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/MacOS/Electron /Users/villetahkavuori/.vscode/extensions/ms-vscode-remote.remote-containers-0.234.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution --log-level debug --log-format json --config /Users/villetahkavuori/Coding/IoTEdgeTest/EdgeSolution/.devcontainer/devcontainer.json --mount-workspace-git-root true
[2890 ms] remote-containers 0.234.0.
[2890 ms] Start: Run: git rev-parse --show-cdup
[2904 ms] Start: Inspecting container
[2904 ms] Start: Run: docker inspect --type container c0b1f76d9e57622e59dda8814049294b6434c1d18a0708e28099cd0644194944
[2962 ms] Start: Run in container: /bin/sh
[2963 ms] Start: Run in container: uname -m
[3019 ms] Start: Run in container: cat /etc/passwd
[3019 ms] Stdin closed!
[3021 ms] Shell server terminated (code: 1, signal: null)

Error response from daemon: Container c0b1f76d9e57622e59dda8814049294b6434c1d18a0708e28099cd0644194944 is not running
@konichi3
Copy link
Collaborator

We are adding this to our backlog to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants