docker 错误排查:无法进入容器.
docker 错误排查:无法进入容器.
#docker exec -it 3c1d 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\""
进自建的centos7 base是可以进入的.但进rancher分布的mysql就不法进去.
- 报错原因,是因为新版本1.13.1-84原因,降到1.13.1-75就可以正常使用了
yum downgrade docker docker-client docker-common
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.nwsuaf.edu.cn
* epel: mirror.lzu.edu.cn
* extras: mirror.vodien.com
* updates: mirrors.nwsuaf.edu.cn
(1/2): updates/7/x86_64/primary_db | 1.3 MB 00:00:00
(2/2): extras/7/x86_64/primary_db | 156 kB 00:00:00
epel/x86_64/primary | 3.6 MB 00:00:00
epel 12738/12738
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.13.1-75.git8633870.el7.centos will be a downgrade
---> Package docker.x86_64 2:1.13.1-84.git07f3374.el7.centos will be erased
---> Package docker-client.x86_64 2:1.13.1-75.git8633870.el7.centos will be a downgrade
---> Package docker-client.x86_64 2:1.13.1-84.git07f3374.el7.centos will be erased
---> Package docker-common.x86_64 2:1.13.1-75.git8633870.el7.centos will be a downgrade
---> Package docker-common.x86_64 2:1.13.1-84.git07f3374.el7.centos will be erased
--> Finished Dependency Resolution
Dependencies Resolved
降版本后:
[root@python2_06:47:22 /root]#docker exec -it 3c1d bash
root@3c1d863574d8:/#