【发布时间】:2021-04-06 03:15:44
【问题描述】:
在尝试将 Visual Studio 代码附加到 WordPress pod(使用 kubernetes 扩展)时获得以下信息:
An error occurred attaching to the container
在终端中显示以下内容:
[3 ms] Remote-Containers 0.166.0 in VS Code 1.55.0 (c185983a683d14c396952dd432459097bc7f757f).
[48 ms] Start: Resolving Remote
[51 ms] Start: Run: kubectl exec -it wp-test-2-wordpress-65859bfc97-qtr9w --namespace default --container wordpress -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='5875030e-bcef-47a6-ada5-7f69edb5d9091617678415893' /bin/sh
[56 ms] Start: Run in container: id -un
[279 ms] 1001
[279 ms] Unable to use a TTY - input is not a terminal or the right kind of file
id: cannot find name for user ID 1001
[279 ms] Exit code 1
[281 ms] Command in container failed: id -un
在任何其他 helm 版本上执行完全相同的操作时,我没有这样的问题。仅适用于 Bitnami WordPress helm 版本。
【问题讨论】:
标签: kubernetes visual-studio-code kubernetes-helm bitnami rancher