microsoft / vscode-remote-try-dotnet

.NET sample project for trying out Dev Containers
https://aka.ms/vscode-remote/containers/getting-started
MIT License
230 stars 180 forks source link

Unable to create a dotnet container via "Try a Sample" #18

Closed connor4312 closed 3 years ago

connor4312 commented 3 years ago

Using Docker in WSL2:

[0 ms] Start: Resolving remote
[3 ms] Start: Check Docker is running
[3 ms] Start: Run: docker info
[406 ms] Start: Run: docker volume ls -q
[567 ms] Start: Run: docker volume create --label vsch.local.repository=https://github.com/Microsoft/vscode-remote-try-dotnetcore --label vsch.local.repository.unique=false vsc-remote-sample
[738 ms] Start: Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/Microsoft/vscode-remote-try-dotnetcore --filter label=vsch.local.repository.volume=vsc-remote-sample --filter label=vsch.local.repository.folder=vscode-remote-try-dotnetcore --filter label=vsch.quality=undefined
[922 ms] Start: Run: docker build -f c:\Users\Connor\.vscode-oss-dev\extensions\ms-vscode-remote.remote-containers-0.117.1\scripts\volumeBootstrap.Dockerfile -t vsc-volume-bootstrap c:\Users\Connor\.vscode-oss-dev\extensions\ms-vscode-remote.remote-containers-0.117.1\scripts
Sending build context to Docker daemon   7.68kB
Step 1/2 : FROM alpine:3.11.2
 ---> cc0abc535e36
Step 2/2 : RUN apk add --no-cache       nodejs  git     openssh-client  docker-c
li      ;
 ---> Using cache
 ---> 17fa1847bf65
Successfully built 17fa1847bf65
Successfully tagged vsc-volume-bootstrap:latest
SECURITY WARNING: You are building a Docker image from Windows against a non-Win
dows Docker host. All files and directories added to build context will have '-r
wxr-xr-x' permissions. It is recommended to double check and reset permissions f
or sensitive files and directories.
[1377 ms] Cloning Github repository: Microsoft/vscode-remote-try-dotnetcore into /workspaces/vscode-remote-try-dotnetcore

[1377 ms] Start: Run: docker run -d --mount type=volume,src=vsc-remote-sample,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[2110 ms] Start: Run: docker exec -i -u root 420c8e469b3b6bd03706bed584729f4de08ae34f535749725f0923c781693514 /bin/sh
[2123 ms] Start: Launching Remote-Containers helper.
[2123 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { node /tmp/vscode-remote-containers-e6844dda1fe3c773a441d1879ee9b8851b9fdb66.js $*; }; f' || true
[2313 ms] 
[2313 ms] 
[2314 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-e6844dda1fe3c773a441d1879ee9b8851b9fdb66.js' >/tmp/vscode-remote-containers-e6844dda1fe3c773a441d1879ee9b8851b9fdb66.js
[2317 ms] 
[2317 ms] 
[2317 ms] Start: Run in container: # Copy .ssh/known_hosts
[2321 ms] 
[2321 ms] 
[2321 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-e6844dda1fe3c773a441d1879ee9b8851b9fdb66.js' >/tmp/vscode-remote-containers-server-e6844dda1fe3c773a441d1879ee9b8851b9fdb66.js
[2325 ms] 
[2325 ms] 
[2615 ms] Start: Run: docker exec -u root -e SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-e6844dda1fe3c773a441d1879ee9b8851b9fdb66.sock -e REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-e6844dda1fe3c773a441d1879ee9b8851b9fdb66.sock 420c8e469b3b6bd03706bed584729f4de08ae34f535749725f0923c781693514 git clone https://github.com/Microsoft/vscode-remote-try-dotnetcore /workspaces/vscode-remote-try-dotnetcore
Cloning into '/workspaces/vscode-remote-try-dotnetcore'...
[3363 ms] Start: Run in container: cat /workspaces/vscode-remote-try-dotnetcore/.devcontainer/devcontainer.json 2>/dev/null
[3366 ms] Start: Run in container: cat /workspaces/vscode-remote-try-dotnetcore/.devcontainer/devcontainer.json 2>/dev/null
[3370 ms] Start: Run in container: test -f /workspaces/vscode-remote-try-dotnetcore/.devcontainer/Dockerfile
[3374 ms] 
[3374 ms] 
[3374 ms] Start: Run: docker exec 420c8e469b3b6bd03706bed584729f4de08ae34f535749725f0923c781693514 docker build -f /workspaces/vscode-remote-try-dotnetcore/.devcontainer/Dockerfile -t vsc-vscode-remote-try-dotnetcore-530c3f5a1471c73527da5f01ad9a2a80 --build-arg VARIANT=3.1 --build-arg INSTALL_NODE=false --build-arg NODE_VERSION=lts/* --build-arg INSTALL_AZURE_CLI=false /workspaces/vscode-remote-try-dotnetcore/.devcontainer
Sending build context to Docker daemon  8.704kB
Step 1/8 : ARG VARIANT="3.1"
Step 2/8 : FROM mcr.microsoft.com/vscode/devcontainers/dotnetcore:0-${VARIANT}
 ---> 1a2f90b00d16
Step 3/8 : ARG INSTALL_NODE="true"
 ---> Using cache
 ---> d5d8b5d496db
Step 4/8 : ARG NODE_VERSION="lts/*"
 ---> Using cache
 ---> 076987310cbc
Step 5/8 : RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr
/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
 ---> Using cache
 ---> 10e3c784a5dd
Step 6/8 : ARG INSTALL_AZURE_CLI="false"
 ---> Using cache
 ---> 0db0cd759a65
Step 7/8 : COPY library-scripts/azcli-debian.sh /tmp/library-scripts/
 ---> Using cache
 ---> dfb3c8baea67
Step 8/8 : RUN if [ "$INSTALL_AZURE_CLI" = "true" ]; then bash /tmp/library-scri
pts/azcli-debian.sh; fi     && apt-get clean -y && rm -rf /var/lib/apt/lists/* /
tmp/library-scripts
 ---> Using cache
 ---> 9e29436fbef7
Successfully built 9e29436fbef7
Successfully tagged vsc-vscode-remote-try-dotnetcore-530c3f5a1471c73527da5f01ad9
a2a80:latest
[3770 ms] Start: Run: docker rm -f 420c8e469b3b6bd03706bed584729f4de08ae34f535749725f0923c781693514
[3771 ms] Start: Run: docker inspect --type image vsc-vscode-remote-try-dotnetcore-530c3f5a1471c73527da5f01ad9a2a80
[3943 ms] Start: Run: docker create sha256:9e29436fbef79eac3e7ef3d3e2a73d41fe5d1d72206131577b7e414d642dae0b
[4016 ms] Remote-Containers server terminated (code: 137, signal: null).
[4192 ms] Start: Run: docker exec -i -u root 98529310c5f30286a2e364faa9569e90f9a6872cf1f9b91ae7d36970d6bd346e cat /etc/passwd
[4377 ms] 
[4377 ms] Error response from daemon: Container 98529310c5f30286a2e364faa9569e90f9a6872cf1f9b91ae7d36970d6bd346e is not running

[4378 ms] Start: Run: docker rm 98529310c5f30286a2e364faa9569e90f9a6872cf1f9b91ae7d36970d6bd346e
[4378 ms] Start: Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/Microsoft/vscode-remote-try-dotnetcore --filter label=vsch.local.repository.volume=vsc-remote-sample --filter label=vsch.local.repository.folder=vscode-remote-try-dotnetcore --filter label=vsch.quality=undefined
[4578 ms] Command failed: cat /etc/passwd
connor4312 commented 3 years ago

Nevermind, this appears to happen for all docker images launched through VS Code. Don't know why yet.