docker exec failed!!error from pipe caused "read parent: connection reset by peer"问题

Posted huanglinxin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker exec failed!!error from pipe caused "read parent: connection reset by peer"问题相关的知识,希望对你有一定的参考价值。

一、复现报错:

docker exec -it  wsqtest  bash

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

二、个人问题描述:

aws社区版centos7.4装完docker,dockers pull  ${images}后,docker run ${images},docker exec 一直进不去容器,版本如下:

技术分享图片

 技术分享图片

 

三、网上类似问题:

I‘m trying to execute bash in my docker container called "bind" via

docker exec -it bind bash

I‘m getting the following error message:

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

There‘s nothing extraordinary in the logs. Restarting docker or the container seemed to have no effect. I also made sure that there‘s enough space on the hard drive. Starting any other binary in the container yields the same error.

version info:

docker --version:

Docker version 1.13.1, build 07f3374/1.13.1

OS:

cat /etc/redhat-release 

CentOS Linux release 7.6.1810 (Core) 

Any help would be appreciated.

四、解决方案:

(1)

it seems to be a bug introduced in a recent update to the docker RPM packages. A temporary workaround is to downgrade all docker packages to a previous release (75 seems to work).

yum downgrade docker-1.13.1-75.git8633870.el7_5               docker-client-1.13.1-75.git8633870.el7_5               docker-common-1.13.1-75.git8633870.el7_5               docker-rhel-push-plugin-1.13.1-75.git8633870.el7_5

(2)

if you use

yum update

before and no idea for what the old version of docker, just run

yum downgrade docker docker-client docker-common

it work for me

 

 

 

 

参考连接:

https://stackoverflow.com/questions/53605666/cannot-run-command-in-docker-container/53606269

yum downgrade docker docker-client docker-common

 

以上是关于docker exec failed!!error from pipe caused "read parent: connection reset by peer"问题的主要内容,如果未能解决你的问题,请参考以下文章

rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting containe

Docker 问题集锦(24) - 解决:OCI runtime exec failed: exec failed: container_linux.go:367

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

distcc (dcc_execvp) ERROR: failed to exec XX: Permission denied

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask