问题原文
原帖链接 · GongT · CC BY-SA 3.0
I installed docker engine from Fedora's default repo.
After update fedora to 26, I got some very strange problem when using containers.
I found this in docker info:
Runtimes: oci runc
Default Runtime: oci
Another computer with docker from yum.dockerproject.org, docker info only have runc:
Runtimes: runc
Default Runtime: runc
I searched many place, but can not found any document about switch this runtimes.
已采纳解答
原帖链接 · smac89 · CC BY-SA 4.0
This is how I changed the default runtime from runc to crun on Ubuntu.
Simply edit ~/.config/docker/daemon.json, and add crun to the list of runtimes, then set crun to be the default runtime.
{
"default-runtime": "crun",
"runtimes": {
"crun": {
"path": "/usr/bin/crun"
}
}
}
Now restart docker service (systemctl restart --user docker)
Note: If you are not running docker in rootless mode, you will need to instead edit /etc/docker/daemon.json.
Sources
https://github.com/containers/crun/issues/37
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
