Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker-runc not installed on system

Tags:

I recently updated my Centos 7 based machine. And since, i fail to start any of my dockers. Does someone have some experience with this issue and if yes how did you fix it ? Thanks for your valuable help. Below the error log

docker run -it centos6_labs_ompi161_devtools3 /usr/bin/docker-current: Error response from daemon: shim error: docker-runc not installed on system.

like image 780
NabilG Avatar asked Mar 13 '17 00:03

NabilG


People also ask

Is runC a Docker?

Runc is a standardized runtime for spawning and running containers on Linux according to the OCI specification. However, it doesn't follow the image-spec specification of the OCI. There are other more high-level runtimes, like Docker and Containerd, which implement this specification on top of runc.

What is Docker runC current?

docker-runc is a command line client for running applications packaged according to the Open Container Initiative (OCI) format and is a compliant implementation of the Open Container Initiative specification.

What is runC Linux?

runC is a CLI tool for spawning and running containers according to the OCI specification. It was released by Docker container platform in 2015 as part of spinning out plumbing components. As expressed by the announcement: runC is a lightweight, portable container runtime.

Who created runC?

1.1 Introduction to runC runC is a container runtime based on the Linux Foundation's Runtime Specification ( runtime-spec ). runC is developed by the Open Container Initiative.


2 Answers

In reference to the top answer, introduce the sym link in /usr/bin to enable it in global path

sudo ln -s /usr/libexec/docker/docker-runc-current /usr/bin/docker-runc
like image 162
John Tee Avatar answered Sep 21 '22 19:09

John Tee


It seems that the docker rpm misses some symbolic link in the end. As it was pointed to me, this issue was raised on:

https://access.redhat.com/solutions/2876431

and this can be easily fixed by:

cd /usr/libexec/docker/
sudo ln -s docker-runc-current docker-runc 
like image 30
NabilG Avatar answered Sep 18 '22 19:09

NabilG