要使docker-runc
在容器内工作,需要做什么?
以下命令将列出插件,但PID = 0且status =已停止。是否需要其他卷?
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /run/docker/plugins/runtime-root/plugins.moby:/run/docker/plugins/runtime-root/plugins.moby docker docker-runc --root /run/docker/plugins/runtime-root/plugins.moby list
结果:
ID PID STATUS BUNDLE CREATED OWNER
abf6245ea65ee121ff48c30f99c283dac49d225221579ee4a140b7d8a843f200 0 stopped /run/docker/containerd/daemon/io.containerd.runtime.v1.linux/plugins.moby/abf6245ea65ee121ff48c30f99c283dac49d225221579ee4a140b7d8a843f200 2018-11-01T16:26:26.605625462Z root