-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一个pod多个容器 #8
Comments
可以先解析pod的container列表 ,然后获取第一个container name 就可以了 |
在代码的那个位置传入容器名字??不太会go |
在浏览器传容器的名字好像不行呀 只能传pod名字。 |
但是如果一个pod有多个容器就会报错。现在我想能否直接给你的api转容器名字? |
想改一下代码、如果发现有多少容器,直接登录到第一容器里。改terminalws.go这个文件哪里?? |
上面不是有containername参数 ,
|
"container", t.container 那个参数??? |
我调用你的api的时候能直接给你穿pod容器的name吗?? |
嗯 但是我测试直接传2个参数也是能进容器的除了pod多容器情况 |
直接传podnmae和namespace就能进。如果想指定容器的话是不是我传3个参数就行了??把容器name传过去就行了?? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
一个pod多个容器,代码里面怎么指定总是进入到第一个容器中
The text was updated successfully, but these errors were encountered: