pc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:235: starting container

2022/2/12 7:18:28

本文主要是介绍pc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:235: starting container,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

使用:

kubectl exec -ti kafka4-6c68674b85-sfj7z  -- /bin/sh

报错:

pc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:235: starting container process caused "process_linux.go:110: decoding init error from pipe caused \"read parent: connection reset by peer\""

解决方法:使用 – /bin/bash

kubectl exec -ti kafka5-77c9dcff94-nx2td  -- /bin/bash


这篇关于pc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:235: starting container的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程