无法通过"oci runtime error"启动任何泊坞窗容器. [英] Cannot start any docker container with "oci runtime error"

查看:97
本文介绍了无法通过"oci runtime error"启动任何泊坞窗容器.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试启动Docker容器时出现以下错误.

I got the error below when i was trying to start a docker container.

docker: Error response from daemon: 
invalid header field value "oci runtime error: container_linux.go:247: 
starting container process caused \"process_linux.go:334: 
running prestart hook 0 caused \\\"fork/exec /usr/bin/dockerd (deleted): no such file or directory\\\"\"\n".

我尝试了不同的方式来运行容器,但是没有一种方法可以运行,但是已经启动的容器仍在运行并且仍然可以运行,这是我的docker版本信息:

I have tried different ways to run a container but non of them works, but the container which has been started is still running and still works, and here is my docker version info:

Client:
 Version:      1.13.1
 API version:  1.24 (downgraded from 1.26)
 Go version:   go1.6.2
 Git commit:   092cba3
 Built:        Thu Nov  2 20:40:23 2017
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.6
 API version:  1.24 (minimum version )
 Go version:   go1.6.2
 Git commit:   78d1802
 Built:        Tue Jan 31 23:35:14 2017
 OS/Arch:      linux/amd64
 Experimental: false

任何建议或帮助都会被求助!

Any suggestion or help would by appriciated!

推荐答案

当您的Docker客户端和服务器版本不一致时,会发生这种情况.您需要重新启动docker服务.尝试使用此命令,然后检查docker版本,您会发现该版本是一致的,并且可以构建docker映像.

This happens when your docker client and server version is inconsistent. You need to retart your docker service. Try use this command then check the docker version, you will find the version is consistent and you can build docker image.

sudo service docker restart

sudo docker version

这篇关于无法通过"oci runtime error"启动任何泊坞窗容器.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆