microsoft / microsoft/vscode-remote-release

Remote Container : Clone Repository in container volume extension 0.231.0 & sup

Open
#6,571 18 comments 0 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Apr 7, 2022.

bug containers upstream
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

  • VSCode Version: 1.66.0
  • Local OS Version: windows 10
  • Remote OS Version:
  • Remote Extension/Connection Type: Docker
  • Logs:

[2022-04-06T08:19:25.023Z] Remote-Containers 0.231.1 in VS Code 1.66.0 (e18005f0f1b33c29e81d732535d8c0e47cafb0b5).
[2022-04-06T08:19:25.023Z] Start: Resolving Remote
[2022-04-06T08:19:25.038Z] Start: Check Docker is running
[2022-04-06T08:19:25.038Z] Start: Run: docker version --format {{.Server.APIVersion}}
[2022-04-06T08:19:26.783Z] Stop (1745 ms): Run: docker version --format {{.Server.APIVersion}}
[2022-04-06T08:19:26.783Z] Server API version: 1.41
[2022-04-06T08:19:26.784Z] Stop (1746 ms): Check Docker is running
[2022-04-06T08:19:26.785Z] Start: Run: docker volume ls -q
[2022-04-06T08:19:28.808Z] Stop (2023 ms): Run: docker volume ls -q
[2022-04-06T08:19:28.830Z] Start: Run: tar --no-same-owner -x -f -
[2022-04-06T08:19:29.023Z] Stop (193 ms): Run: tar --no-same-owner -x -f -
[2022-04-06T08:19:29.026Z] Start: Run: docker build -f C:\Users\ME\AppData\Local\Temp\vsch\bootstrap-image\0.231.1\bootstrap.Dockerfile -t vsc-volume-bootstrap C:\Users\ME\AppData\Local\Temp\vsch\bootstrap-image\0.231.1
[2022-04-06T08:19:29.728Z]
[2022-04-06T08:19:33.868Z] Sending build context to Docker daemon 724.5kB
Step 1/5 : FROM mcr.microsoft.com/vscode/devcontainers/base:0-alpine-3.14
---> f42b89f7655a
Step 2/5 : RUN git config --global http.sslVerify false
[2022-04-06T08:19:33.964Z] ---> Running in a16ba2d31358
[2022-04-06T08:19:34.685Z] Removing intermediate container a16ba2d31358
---> 3dca614034ad
Step 3/5 : RUN apk add --no-cache nodejs npm make g++ docker-c
li docker-compose ;
[2022-04-06T08:19:34.716Z] ---> Running in b08e9f0f155d
[2022-04-06T08:19:35.034Z] fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
[2022-04-06T08:19:35.995Z] fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.
gz
[2022-04-06T08:19:37.267Z] (1/58) Installing docker-cli (20.10.11-r0)
...
[2022-04-06T08:21:02.440Z] (58/58) Installing docker-zsh-completion (20.10.11-r0)
[2022-04-06T08:21:02.470Z]
[2022-04-06T08:21:02.533Z] Executing busybox-1.33.1-r6.trigger
OK: 466 MiB in 166 packages
[2022-04-06T08:21:11.112Z] Removing intermediate container b08e9f0f155d
---> a7ee8a85e4aa
Step 4/5 : RUN cd && npm i node-pty
[2022-04-06T08:21:12.045Z] ---> Running in c811a0873ae6
[2022-04-06T08:21:18.389Z]
added 2 packages, and audited 3 packages in 6s
found 0 vulnerabilities
[2022-04-06T08:21:19.180Z] Removing intermediate container c811a0873ae6
---> 9d23b7b2478d
Step 5/5 : COPY .vscode-remote-containers /root/.vscode-remote-containers
[2022-04-06T08:21:19.474Z] ---> 2d2c5f9bd40f
Successfully built 2d2c5f9bd40f
[2022-04-06T08:21:19.505Z] Successfully tagged vsc-volume-bootstrap:latest
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to doubl
e check and reset permissions for sensitive files and directories.
[2022-04-06T08:21:20.372Z]
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[2022-04-06T08:21:20.434Z] Stop (111408 ms): Run: docker build -f C:\Users\ME\AppData\Local\Temp\vsch\bootstrap-image\0.231.1\bootstrap.Dockerfile -t vsc-volume-bootstrap C:\Users\ME\AppData\Local\Temp\vsch\bootstrap-image\0.231.1
[2022-04-06T08:21:20.436Z] Cloning Github repository: unknown-owner/testreact into /workspaces/testreact
[2022-04-06T08:21:20.436Z] Start: Run: docker run -d --mount type=volume,src=testreact-44d2e687fb9c09d9e45ad5486285d358,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[2022-04-06T08:21:22.776Z] Stop (2340 ms): Run: docker run -d --mount type=volume,src=testreact-44d2e687fb9c09d9e45ad5486285d358,dst=/workspaces -v /var/run/docker.sock:/var/run/docker.sock vsc-volume-bootstrap sleep infinity
[2022-04-06T08:21:22.777Z] Start: Run in container: /bin/sh
[2022-04-06T08:21:23.213Z] Start: Launching Remote-Containers helper.
[2022-04-06T08:21:23.214Z] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-aded43fc53fb1624aa64682c4ee0b75a559fbe74.sock) forwarded to local host (\.\pipe\openssh-ssh-agent).
[2022-04-06T08:21:23.215Z] Start: Run: gpgconf --list-dir agent-extra-socket
[2022-04-06T08:21:23.335Z] findLocalWindowsExecutable: Exectuable 'gpgconf' not found on PATH 'C:\Program Files (x86)...'.
[2022-04-06T08:21:23.339Z] Stop (124 ms): Run: gpgconf --list-dir agent-extra-socket
[2022-04-06T08:21:23.341Z] Start: Run in container: /bin/sh
[2022-04-06T08:21:23.342Z] Stop (129 ms): Launching Remote-Containers helper.
[2022-04-06T08:21:23.343Z] Stop (128 ms): Run: gpgconf --list-dir agent-extra-socket
[2022-04-06T08:21:23.778Z] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-aded43fc53fb1624aa64682c4ee0b75a559fbe74.js' >/tmp/vscode-remote-containers-aded43fc53fb1624aa64682c4ee0b75a559fbe74.js
[2022-04-06T08:21:25.408Z]
[2022-04-06T08:21:25.408Z]
[2022-04-06T08:21:25.408Z] Stop (1630 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-aded43fc53fb1624aa64682c4ee0b75a559fbe74.js' >/tmp/vscode-remote-containers-aded43fc53fb1624aa64682c4ee0b75a559fbe74.js
[2022-04-06T08:21:25.408Z] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-aded43fc53fb1624aa64682c4ee0b75a559fbe74.js' >/tmp/vscode-remote-containers-server-aded43fc53fb1624aa64682c4ee0b75a559fbe74.js_1649233285408
[2022-04-06T08:21:25.415Z]
[2022-04-06T08:21:25.415Z]
[2022-04-06T08:21:25.415Z] Stop (7 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-aded43fc53fb1624aa64682c4ee0b75a559fbe74.js' >/tmp/vscode-remote-containers-server-aded43fc53fb1624aa64682c4ee0b75a559fbe74.js_1649233285408
[2022-04-06T08:21:25.420Z] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { node /tmp/vscode-remote-containers-aded43fc53fb1624aa64682c4ee0b75a559fbe74.js $; }; f' || true
[2022-04-06T08:21:25.425Z]
[2022-04-06T08:21:25.425Z]
[2022-04-06T08:21:25.425Z] Stop (5 ms): Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { node /tmp/vscode-remote-containers-aded43fc53fb1624aa64682c4ee0b75a559fbe74.js $
; }; f' || true
[2022-04-06T08:21:25.427Z] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[2022-04-06T08:21:25.430Z]
[2022-04-06T08:21:25.430Z]
[2022-04-06T08:21:25.431Z] Stop (4 ms): Run in container: # Test for /root/.ssh/known_hosts and ssh
[2022-04-06T08:21:25.431Z] Start: Run in container: # Copy C:\Users\depoortere.ssh\known_hosts to /root/.ssh/known_hosts
[2022-04-06T08:21:25.437Z]
[2022-04-06T08:21:25.437Z]
[2022-04-06T08:21:25.437Z] Stop (6 ms): Run in container: # Copy C:\Users\depoortere.ssh\known_hosts to /root/.ssh/known_hosts

Steps to Reproduce:

1.Ctrl+Shift+P > Remote Containers : Clone in container volume ..
2.Choose "Clone a repository from Gitlab (url on premise https) in a container volume
3.Choose project in list and choose https://mygitlab/myproject remote url
4.Execution stay on the last line of this log and in docker ps the container vsc-volume-bootstrap stay on "sleep infinity"

v0.224.3 still running correctly !

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.