Vscode-remote-release: Unable to open folder in container with sample projects.

Created on 31 May 2019  路  8Comments  路  Source: microsoft/vscode-remote-release

Version: 1.35.0-insider
Commit: 5c65d9bfa4c56538150d7f3066318e0db2c6151f
Date: 2019-05-30T21:54:30.889Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.15.0-50-generic

Distribution: KDE Neon 5.15

Steps to reproduce the issue:
git clone https://github.com/Microsoft/vscode-remote-try-python

Open VS Code
Press F1
Remote Containers: Open folder in container
Select the cloned folder

Console output

Setting up container for folder: /home/tim/data/vscode/vscode-remote-try-python
Run: docker build -f /home/tim/data/vscode/vscode-remote-try-python/.devcontainer/Dockerfile -t vsc-vscode-remote-try-python-497d8092745b211d4626df4a2ac2f7cc /home/tim/data/vscode/vscode-remote-try-python
Sending build context to Docker daemon  241.2kB
Step 1/13 : FROM python:3
 ---> a4cc999cf2aa
Step 2/13 : RUN pip install pylint
 ---> Running in 3198e50f1940
Collecting pylint
  Downloading https://files.pythonhosted.org/packages/60/c2/b3f73f4ac008bef6e75bca4992f3963b3f85942e0277237721ef1c151f0d/pylint-2.3.1-py3-none-any.whl (765kB)
Collecting mccabe<0.7,>=0.6 (from pylint)
  Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting astroid<3,>=2.2.0 (from pylint)
  Downloading https://files.pythonhosted.org/packages/d5/ad/7221a62a2dbce5c3b8c57fd18e1052c7331adc19b3f27f1561aa6e620db2/astroid-2.2.5-py3-none-any.whl (193kB)
Collecting isort<5,>=4.2.5 (from pylint)
  Downloading https://files.pythonhosted.org/packages/1c/d9/bf5848b376e441ff358a14b954476423eeeb8c9b78c10074b7f53ce2918d/isort-4.3.20-py2.py3-none-any.whl (42kB)
Collecting lazy-object-proxy (from astroid<3,>=2.2.0->pylint)
  Downloading https://files.pythonhosted.org/packages/43/a5/1b19b094ad19bce55b5b6d434020f5537b424fd2b3cff0fbef23d7bb5a95/lazy_object_proxy-1.4.1-cp37-cp37m-manylinux1_x86_64.whl (49kB)
Collecting six (from astroid<3,>=2.2.0->pylint)
  Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting wrapt (from astroid<3,>=2.2.0->pylint)
  Downloading https://files.pythonhosted.org/packages/67/b2/0f71ca90b0ade7fad27e3d20327c996c6252a2ffe88f50a95bba7434eda9/wrapt-1.11.1.tar.gz
Collecting typed-ast>=1.3.0; implementation_name == "cpython" (from astroid<3,>=2.2.0->pylint)
  Downloading https://files.pythonhosted.org/packages/17/9e/00918af7bdd616decb5b7ad06a9cd0a4a247d2fccaa630ab448a57e68b98/typed_ast-1.3.5-cp37-cp37m-manylinux1_x86_64.whl (736kB)
Building wheels for collected packages: wrapt
  Building wheel for wrapt (setup.py): started
  Building wheel for wrapt (setup.py): finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/89/67/41/63cbf0f6ac0a6156588b9587be4db5565f8c6d8ccef98202fc
Successfully built wrapt
Installing collected packages: mccabe, lazy-object-proxy, six, wrapt, typed-ast, astroid, isort, pylint
Successfully installed astroid-2.2.5 isort-4.3.20 lazy-object-proxy-1.4.1 mccabe-0.6.1 pylint-2.3.1 six-1.12.0 typed-ast-1.3.5 wrapt-1.11.1
Removing intermediate container 3198e50f1940
 ---> eba93ff030f7
Step 3/13 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Running in e8ff4ef50b27
Removing intermediate container e8ff4ef50b27
 ---> ce25159ad260
Step 4/13 : RUN apt-get update     && apt-get -y install --no-install-recommends apt-utils 2>&1
 ---> Running in f4951102adf8
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:6 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [492 kB]
Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [27.2 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [7082 kB]
Fetched 7907 kB in 5s (1394 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libapt-inst2.0
The following NEW packages will be installed:
  apt-utils libapt-inst2.0
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 602 kB of archives.
After this operation, 1607 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 libapt-inst2.0 amd64 1.4.9 [192 kB]
Get:2 http://deb.debian.org/debian stretch/main amd64 apt-utils amd64 1.4.9 [410 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 602 kB in 0s (1687 kB/s)
Selecting previously unselected package libapt-inst2.0:amd64.
(Reading database ... 30576 files and directories currently installed.)
Preparing to unpack .../libapt-inst2.0_1.4.9_amd64.deb ...
Unpacking libapt-inst2.0:amd64 (1.4.9) ...
Selecting previously unselected package apt-utils.
Preparing to unpack .../apt-utils_1.4.9_amd64.deb ...
Unpacking apt-utils (1.4.9) ...
Setting up libapt-inst2.0:amd64 (1.4.9) ...
Setting up apt-utils (1.4.9) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Removing intermediate container f4951102adf8
 ---> cad6e0572886
Step 5/13 : RUN apt-get -y install git procps lsb-release
 ---> Running in f5cdc5547a32
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.11.0-3+deb9u4).
procps is already the newest version (2:3.3.12-3+deb9u1).
The following additional packages will be installed:
  distro-info-data
Suggested packages:
  lsb
The following NEW packages will be installed:
  distro-info-data lsb-release
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 32.9 kB of archives.
After this operation, 78.8 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 distro-info-data all 0.36 [5810 B]
Get:2 http://deb.debian.org/debian stretch/main amd64 lsb-release all 9.20161125 [27.1 kB]
Fetched 32.9 kB in 0s (199 kB/s)
Selecting previously unselected package distro-info-data.
(Reading database ... 30707 files and directories currently installed.)
Preparing to unpack .../distro-info-data_0.36_all.deb ...
Unpacking distro-info-data (0.36) ...
Selecting previously unselected package lsb-release.
Preparing to unpack .../lsb-release_9.20161125_all.deb ...
Unpacking lsb-release (9.20161125) ...
Setting up distro-info-data (0.36) ...
Setting up lsb-release (9.20161125) ...
Removing intermediate container f5cdc5547a32
 ---> c154369dec21
Step 6/13 : RUN apt-get install -y libicu[0-9][0-9]
 ---> Running in 96f27c63ff4d
Reading package lists...
Building dependency tree...
Reading state information...
libicu57 is already the newest version (57.1-6+deb9u2).
libicu57 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Removing intermediate container 96f27c63ff4d
 ---> e4ea2ce6188e
Step 7/13 : RUN mkdir /workspace
 ---> Running in 7d152e9213e1
Removing intermediate container 7d152e9213e1
 ---> 03ea5a604e4e
Step 8/13 : WORKDIR /workspace
 ---> Running in 5116ce3e1e0b
Removing intermediate container 5116ce3e1e0b
 ---> 505a4383aa7d
Step 9/13 : COPY .devcontainer/requirements.txt.temp requirements.txt* /workspace/
 ---> 62765f91daf7
Step 10/13 : RUN if [ -f "requirements.txt" ]; then pip install -r requirements.txt && rm requirements.txt*; fi
 ---> Running in 467496dacc75
Collecting flask (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/9a/74/670ae9737d14114753b8c8fdf2e8bd212a05d3b361ab15b44937dfd40985/Flask-1.0.3-py2.py3-none-any.whl (92kB)
Collecting itsdangerous>=0.24 (from flask->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting click>=5.1 (from flask->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
Collecting Werkzeug>=0.14 (from flask->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/9f/57/92a497e38161ce40606c27a86759c6b92dd34fcdb33f64171ec559257c02/Werkzeug-0.15.4-py2.py3-none-any.whl (327kB)
Collecting Jinja2>=2.10 (from flask->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl (124kB)
Collecting MarkupSafe>=0.23 (from Jinja2>=2.10->flask->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/98/7b/ff284bd8c80654e471b769062a9b43cc5d03e7a615048d96f4619df8d420/MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl
Installing collected packages: itsdangerous, click, Werkzeug, MarkupSafe, Jinja2, flask
Successfully installed Jinja2-2.10.1 MarkupSafe-1.1.1 Werkzeug-0.15.4 click-7.0 flask-1.0.3 itsdangerous-1.1.0
Removing intermediate container 467496dacc75
 ---> 531d6d3dfa72
Step 11/13 : RUN apt-get autoremove -y     && apt-get clean -y     && rm -rf /var/lib/apt/lists/*
 ---> Running in 53ceff7ba787
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Removing intermediate container 53ceff7ba787
 ---> 056ba490f145
Step 12/13 : ENV DEBIAN_FRONTEND=dialog
 ---> Running in 101f2a257810
Removing intermediate container 101f2a257810
 ---> 38bde722f4ba
Step 13/13 : ENV SHELL /bin/bash
 ---> Running in 30b2981371c6
Removing intermediate container 30b2981371c6
 ---> 794db0798f16
Successfully built 794db0798f16
Successfully tagged vsc-vscode-remote-try-python-497d8092745b211d4626df4a2ac2f7cc:latest
Run: docker run -a STDOUT -a STDERR -p 127.0.0.1:9000:9000 --mount type=bind,source=/data/tim/vscode/vscode-remote-try-python,target=/workspaces/vscode-remote-try-python -v /home/tim/.gitconfig:/root/.gitconfig -l vsch.quality=insider -l vsch.local.folder=/home/tim/data/vscode/vscode-remote-try-python -l vsch.remote.devPort=0 vsc-vscode-remote-try-python-497d8092745b211d4626df4a2ac2f7cc /bin/sh -c echo Container started ;  while sleep 1; do :; done
Container started
Run: docker exec a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d test -d /root/.vscode-server-insiders
Run: docker exec a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d test -d /root/.vscode-remote
Run: docker exec a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d /bin/sh -c set -o noclobber ; mkdir -p '/root/.vscode-server-insiders/data/Machine' && { > '/root/.vscode-server-insiders/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
Run: docker exec -w /root a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d /bin/sh -c mkdir -p '/root/.vscode-server-insiders/data/Machine' && cat >'/root/.vscode-server-insiders/data/Machine/settings.json' <<json
                                                                                                           {
                                                                                                                "python.pythonPath": "/usr/local/bin/python"
                                  }
                                   json
Run: docker exec a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d /bin/sh -c (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Run: docker exec a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d test -d /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f
Installing VS Code Server for commit 5c65d9bfa4c56538150d7f3066318e0db2c6151f
Run: docker exec a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d mkdir -p /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f_1559270122929
Run: docker cp /tmp/vsch/5c65d9bfa4c56538150d7f3066318e0db2c6151f/vscode-server-linux-x64.tar.gz a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d:/root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f_1559270122929
Run: docker exec -w /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f_1559270122929 a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d tar --no-same-owner -xf vscode-server-linux-x64.tar.gz --strip-components 1
Run: docker exec -w /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f_1559270122929 a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d rm vscode-server-linux-x64.tar.gz
Run: docker exec a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d mv -n /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f_1559270122929 /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f
Run: docker exec a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d test -d /root/.vscode-server-insiders/extensions
Run: docker exec -w /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f -e VSCODE_AGENT_FOLDER=/root/.vscode-server-insiders a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f/server.sh  --install-extension ms-python.python --force
Remote configuration data at /root/.vscode-server-insiders
Installing extensions...
Installing extension 'ms-python.python' v2019.5.17517...
Extension 'ms-python.python' v2019.5.17517 was successfully installed.
Run: docker exec a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d /bin/sh -c set -o noclobber ; mkdir -p '/root/.vscode-server-insiders/data/Machine' && { > '/root/.vscode-server-insiders/data/Machine/.postCreateCommandMarker' ; } 2> /dev/null
Run: docker exec a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d test -f /root/.vscode-server-insiders/.postCreateCommandMarker
Run: docker exec -w /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f -u 0 a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d /bin/sh -c command -v git >/dev/null 2>&1 && git config --system credential.helper '!f() { command -v code-insiders >/dev/null 2>&1 && code-insiders --gitCredential $*; }; f' || true
Run: docker exec -w /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d /bin/sh -c PATH="/root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f/bin:$PATH" VSCODE_AGENT_FOLDER='/root/.vscode-server-insiders' /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f/server.sh  --port 0
Remote configuration data at /root/.vscode-server-insiders


*
* Visual Studio Code Server
*
* Reminder: You may only use this software with Visual Studio family products,
* as described in the license https://aka.ms/vscode-remote/license
*


IP Address: 172.17.0.2
Extension host agent listening on 37737
Run: docker exec -w /root/.vscode-server-insiders/bin/5c65d9bfa4c56538150d7f3066318e0db2c6151f a1ad83b2d81871905ad45b2692ac766c12b27244ef335bb19b67f395479e078d /bin/sh -c echo 37737 >.devport


--------------------------
Published Ports:
9000/tcp -> 127.0.0.1:9000
--------------------------

==> Received a management connection
==> Received an extension host connection.
==> Using UI language: en
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
mesg: ttyname failed: Inappropriate ioctl for device

Note: I am somewhat certain that earlier this week I did not see the last 3 lines, although they look suspect now. I am not sure if they are related.

Now after this completes I am unable to open the folder as in this screenshot..
screenshot

I have tried the above steps with the sample python, cpp, and go remote container projects. All of them end as in the screenshot above with an error that I am unable to open the folder.

Edit: It might be worth noting, I just tried attaching to a running go container and that appears to have worked.

bug containers verified

Most helpful comment

Also seeing this issue - it seems to be that it's trying to open the real host directory inside the container. Modifying "workspaceFolder": "/workspaces/xyz" seems to work around it.

All 8 comments

What do you get for docker inspect <container-id> for such a container?

[
    {
        "Id": "ef0000e62829d36070a08e0532001d1b6ff19cd22cc079daf19b8bdd856c173e",
        "Created": "2019-05-31T13:49:53.030858264Z",
        "Path": "/bin/sh",
        "Args": [
            "-c",
            "echo Container started ;  while sleep 1; do :; done"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 2321,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2019-05-31T13:49:54.755349734Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:34228462782b382e9d64c8ec6f58730a4bd8b5b9b2c0d9111780d77e6b26388b",
        "ResolvConfPath": "/data/local/docker/containers/ef0000e62829d36070a08e0532001d1b6ff19cd22cc079daf19b8bdd856c173e/resolv.conf",
        "HostnamePath": "/data/local/docker/containers/ef0000e62829d36070a08e0532001d1b6ff19cd22cc079daf19b8bdd856c173e/hostname",
        "HostsPath": "/data/local/docker/containers/ef0000e62829d36070a08e0532001d1b6ff19cd22cc079daf19b8bdd856c173e/hosts",
        "LogPath": "/data/local/docker/containers/ef0000e62829d36070a08e0532001d1b6ff19cd22cc079daf19b8bdd856c173e/ef0000e62829d36070a08e0532001d1b6ff19cd22cc079daf19b8bdd856c173e-json.log",
        "Name": "/xenodochial_varahamihira",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": [
            "4894d30b29cb9fb1ee97593e70e5ff13909af033597ce3a657fa2e46d5e647d5",
            "49a6bb63622c9f1a76a8647e49331f9c6c5d3775122c90501a54b3e81af07e31",
            "6014fa457645a0c042a483811ddca998bcae226034a9339f33c4623c08f9a5f1"
        ],
        "HostConfig": {
            "Binds": [
                "/home/tim/.gitconfig:/root/.gitconfig"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {
                "9000/tcp": [
                    {
                        "HostIp": "127.0.0.1",
                        "HostPort": "9000"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "shareable",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DiskQuota": 0,
            "KernelMemory": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": 0,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "Mounts": [
                {
                    "Type": "bind",
                    "Source": "/data/tim/vscode/vscode-remote-try-python",
                    "Target": "/workspaces/vscode-remote-try-python"
                }
            ],
            "MaskedPaths": [
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/asound",
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/data/local/docker/overlay2/9d67fd6bf534f0992a17ab606894a99f3f7009a14c3b8e484063708be701c039-init/diff:/data/local/docker/overlay2/66223c23271a31a739da005deef77512c6096d25c40aa056847a015ba55acb6c/diff:/data/local/docker/overlay2/9b39d06e40a93629954104b7f8a0db892ffb2f137cf153b9a822c2a80fff186a/diff:/data/local/docker/overlay2/9637c1e3729f64b2237728dfdc99c3e5e6b114ab08fa2aa4234f0a6d9c596684/diff:/data/local/docker/overlay2/1756d798f077ec340946b8fff25f70f094ab849faa1bccf6fdcec4cf83dc9005/diff:/data/local/docker/overlay2/45cb0c203ee4e961a918378c6eff948b3cfade8825040c6771985dc722d986f6/diff:/data/local/docker/overlay2/57a5e0682db1d857165bf7aa29a5d4e51d878c479c963a275aabb62164a71824/diff:/data/local/docker/overlay2/5c177f173b0342cc01aa79af466b9919c189a774c45dc47bdd337b32484cedc3/diff:/data/local/docker/overlay2/0b54953dd4be9bc4c401daa181c3b2776e2ca329478eb485bca323d5a78d2f33/diff:/data/local/docker/overlay2/032c4a591ed5c46207765b77681095ab083cfa461ca05be902c1475285ed68d1/diff:/data/local/docker/overlay2/a908a696a9f65af5df9c2e9fe53d60c4adfb11ffd86941e1a9f7bd0f3e0a6ad1/diff:/data/local/docker/overlay2/a8efd7aca8739f382c87451195205573b2adec7940e1fa7e8203a581ef6d9b43/diff:/data/local/docker/overlay2/73706d5831597512c89ddb21b1c1e7bd6977842caed1f3ae77a644e1cd6548d4/diff:/data/local/docker/overlay2/2da9044b02d3293b65ce61a5842259c842c9367586badc47422b8d3c9491bde2/diff:/data/local/docker/overlay2/13dbcfacc01aa5985a8bc8829219e6f76986e29080ebb5cfa1bb8934d6394d0e/diff:/data/local/docker/overlay2/5a9f98e95291c5c622a72f29e5d76faf637424462d82e22155e1e85320401b07/diff:/data/local/docker/overlay2/08a97b8fa53c37a3d8fc938544b5c622968aeb751c69fab7f7ee795b2f714512/diff:/data/local/docker/overlay2/4e5dfdecf6f12967901c1cfcba5ca2fb882831836f0b7d6bdcdf7beb3c4249d2/diff",
                "MergedDir": "/data/local/docker/overlay2/9d67fd6bf534f0992a17ab606894a99f3f7009a14c3b8e484063708be701c039/merged",
                "UpperDir": "/data/local/docker/overlay2/9d67fd6bf534f0992a17ab606894a99f3f7009a14c3b8e484063708be701c039/diff",
                "WorkDir": "/data/local/docker/overlay2/9d67fd6bf534f0992a17ab606894a99f3f7009a14c3b8e484063708be701c039/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/data/tim/vscode/vscode-remote-try-python",
                "Destination": "/workspaces/vscode-remote-try-python",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/home/tim/.gitconfig",
                "Destination": "/root/.gitconfig",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "ef0000e62829",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "9000/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "LANG=C.UTF-8",
                "GPG_KEY=0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D",
                "PYTHON_VERSION=3.7.3",
                "PYTHON_PIP_VERSION=19.1.1",
                "DEBIAN_FRONTEND=dialog",
                "SHELL=/bin/bash"
            ],
            "Cmd": [
                "/bin/sh",
                "-c",
                "echo Container started ;  while sleep 1; do :; done"
            ],
            "Image": "vsc-vscode-remote-try-python-497d8092745b211d4626df4a2ac2f7cc",
            "Volumes": null,
            "WorkingDir": "/workspace",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                "vsch.local.folder": "/home/tim/data/vscode/vscode-remote-try-python",
                "vsch.quality": "insider",
                "vsch.remote.devPort": "0"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "b754cef0f84f92348f375b5090d81df94e6b241fb4de37af69b0caf8edda6494",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "9000/tcp": [
                    {
                        "HostIp": "127.0.0.1",
                        "HostPort": "9000"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/b754cef0f84f",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "a65367679b848dfad7e767291f0dc1d814701128f7f36748d2cd82cb35ca39ed",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.3",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:03",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "9fc5cd7e16941ed4b4477d8aec7a93c276a08426c1deaa71255a611fd5291bc7",
                    "EndpointID": "a65367679b848dfad7e767291f0dc1d814701128f7f36748d2cd82cb35ca39ed",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.3",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:03",
                    "DriverOpts": null
                }
            }
        }
    }
]

Also I just tested, the container is left running in this state and I am able to attach to it at this point. So there is a workaround.

The URI in the error message on the screenshot contains your home folder, that's unexpected, the path should be /workspaces/vscode-remote-try-python by default. Have you added "workspaceFolder" to the devcontainer.json to change that?

Yes if I add workspaceFolder to my devcontainer.json it seems to work.

Also one thing I failed to mention that seems relevant now,

For me /home/tim/data is a symlink to /data/tim
From VSCode I am "Open folder in container" and giving it the path /home/tim/data/vscode/vscode-remote-try-python
This does not work. (without setting workspaceFolder in devcontainer.json)

Then I stopped the running container. Closed all editors and folders in vscode and then I "Open folder in container" and pointed it to /data/tim/vscode/vscode-remote-try-python and this works. (with or without setting workspaceFolder)

So for me either of these seem to work
1) Set "workspaceFolder": "/workspaces/vscode-remote-try-python" in devcontainer.json
2) Do not open the folder through a symlink

Thanks!

Also seeing this issue - it seems to be that it's trying to open the real host directory inside the container. Modifying "workspaceFolder": "/workspaces/xyz" seems to work around it.

Closed wrong issue...

Setting to verified because the project loads for me properly after following @leggt's steps in the latest Insiders.

Was this page helpful?
0 / 5 - 0 ratings