Fix docker `Unknown runtime specified oci` error

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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值