English 中文(简体)
VSCode 旧集装箱
原标题:VSCode issue running old container

I am trying to run a dev container with an old version of node (8.x). When trying to launch I get this error:

Start: Run in container: /root/.vscode-server/bin/660393deaaa6d1996740ff4880f1bad43768c814/bin/code-server --log debug --force-disable-user-env --server-data-dir /root/.vscode-server --telemetry-level off --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /root/.vscode-server/data/Machine/.connection-token-660393deaaa6d1996740ff4880f1bad43768c814 --extensions-download-dir /root/.vscode-server/extensionsCache --start-server 
[2647 ms] Command failed: /root/.vscode-server/bin/660393deaaa6d1996740ff4880f1bad43768c814/bin/code-server --log debug --force-disable-user-env --server-data-dir /root/.vscode-server --telemetry-level off --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /root/.vscode-server/data/Machine/.connection-token-660393deaaa6d1996740ff4880f1bad43768c814 --extensions-download-dir /root/.vscode-server/extensionsCache --start-server 
[2647 ms] /vscode/vscode-server/bin/linux-x64/660393deaaa6d1996740ff4880f1bad43768c814/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.16  not found (required by /vscode/vscode-server/bin/linux-x64/660393deaaa6d1996740ff4880f1bad43768c814/node)
/vscode/vscode-server/bin/linux-x64/660393deaaa6d1996740ff4880f1bad43768c814/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17  not found (required by /vscode/vscode-server/bin/linux-x64/660393deaaa6d1996740ff4880f1bad43768c814/node)
/vscode/vscode-server/bin/linux-x64/660393deaaa6d1996740ff4880f1bad43768c814/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14  not found (required by /vscode/vscode-server/bin/linux-x64/660393deaaa6d1996740ff4880f1bad43768c814/node)
/vscode/vscode-server/bin/linux-x64/660393deaaa6d1996740ff4880f1bad43768c814/node: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.18  not found (required by /vscode/vscode-server/bin/linux-x64/660393deaaa6d1996740ff4880f1bad43768c814/node)

I think this has to do with VSCode trying to SSH and expecting more modern libs?

So how do I run an old container? The entire point of my attempt is to load an old project that I cannot run locally due to modern Python and other things. So I am attempting to recreate an older env including all the libs such as glibc etc.

问题回答

From your error what i can infer is that you might need to install some prerequisites for your linux distro.

From VSCode official site:

glibc based Linux distributions for x86_64, ARMv7l (AArch32), and ARMv8l (AArch64) should work if they have the needed prerequisites.

Refer to prerequisites here.

Then you can keep moving forward with the installation/fix as described on the link above.

If needed refer to VS Code Server (it is on your error messages).

希望会帮助!

相信你需要安装<代码>Glibc,用于密码操作8.x

https://github.com/microsoft/vscode-remote-release/issues/1712

Here is a solved Github issue on how someone with a similar problem fixed it, and they added steps on how to manually install the needed dependencies.





相关问题
Unable to connect to docker container inside windows server

As title. I am developing a system with many docker images with ASP.Net MVC core projects. I am publishing these docker images into a docker engine installed on Windows Server OS, and I found that I ...

Only can see postgreSQL as an admin

After installed Wsl and Docker, can t access PSQL and other things. I was studying Docker, and installed the latest version. So far so good, I received an error about the WSL version, saw some ...

make docker-compose block until healthy without `depends_on`

I am working with a team that uses docker-compose to start a set of helper services, but does not use docker when the code is being developed. Here, docker-compose is just a convenient way to run the ...

change grafana port using docker host network

I am trying to spin up a grafana container in docker, however my setup in docker does not allow ipv4 forwarding and thus I cannot use the default bridge network in docker. All I can use is the host ...

Pip instalation for Python 3.11 in docker

I have Dockerfile to build image for Django project that uses Python 3.11 and runs in poetry environment (see content below). Problem is when I try to donwload get-pip.py file and run it using Python, ...

在 Dockerfile 中运行 composer install

我正在尝试将我的Laravel应用程序进行Docker化。 该应用程序已经构建并在Git中,但我将vendor文件夹添加到了.gitignore中。 我添加了一个Dockerfile,看起来像这样: FROM php:7.1-fpm-alpine RUN apk update ...

热门标签