Fix docker `Unknown runtime specified oci` error

来源:互联网 发布:java string变量类型 编辑:程序博客网 时间:2024/05/17 22:23

Long time no post, but this one is important. Or it was to me, at least.

Not long ago I upgraded Docker on my OpenSUSE Tumbleweed system. I can't tell for sure what version I was upgrading from and to, but right now I'm on version 1.12.5. Shouldn't be far back :-)

So, whenever I was trying to boot an existing container, I was getting something similar to:

Error response from daemon: Unknown runtime specified oci  Error: failed to start containers: es20  

My solution to this was to follow these steps:

  1. Find the ID of the troublesome container: docker ps -a
  2. Find its directory in /var/lib/docker/containers/<ID>/
  3. In there, look for hostconfig.json and remove the oci value of the Runtime property.
  4. Restart the docker process sudo systemctl restart docker (if you have systemd)

Not going to enter the details I was a bit forced to go through until I reached this easy fix. Just do that and boot happily ever after!



http://umbra.xyz/fix-docker-unknown-runtime-specified-oci-error/

0 0
原创粉丝点击