我正在尝试使用旧版本的节点(8.x)运行开发容器。当尝试启动时,我收到此错误:
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)
我认为这与 VSCode 尝试 SSH 并期望更现代的库有关?
那么如何运行旧容器呢?我尝试的全部目的是加载一个由于现代 Python 和其他原因而无法在本地运行的旧项目。所以我试图重新创建一个旧的环境,包括所有的库,例如 glibc 等。