OCI runtime exec failed: exec failed: unable to start container process: open /dev/pts/0: operati…

kubectl exec -it podname bash返回如下信息,修改deployment,添加stdin和tty选项

kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
Defaulted container "fast-one" out of: fast-one, agent-sidecar (init)
error: Internal error occurred: error executing command in container: failed to exec in container: failed to start exec "9fa6c9a33fd865a207ccd3a2ac3a4be6cb84c19905cfb8d97857f03faec91092": OCI runtime exec failed: exec failed: unable to start container process: open /dev/pts/0: operation not permitted: unknown

        containers:
        - image: xxxx.xxxx.xxxx/aaa/bbb:cccc
          stdin: true
          tty: true

有一种说发是由于runc 版本低,1.1.3.可以替换runc升到更高版本.待确定

© 版权声明
THE END
如果内容对您有所帮助,就支持一下吧!
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容