Cannot run command in Docker container

  • A+
Category:Languages

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.

 


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.centos.x86_64 /               docker-client-1.13.1-75.git8633870.el7.centos.x86_64 /               docker-common-1.13.1-75.git8633870.el7.centos.x86_64 

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: