Closed bergwolf closed 7 years ago
Save all process info in process.json file in container root directory. With it, runv ps can look up and verify each of them.
runv ps
[root@hypervsock foobar]# cat process.json [ { "id": "init", "pid": 66524, "cmd": "sh", "create_time": 10904725 } ]
With it, runv ps works and containerd is able to interpret its result properly.
[hypervsock@containerd]$sudo runv --root /run/containerd/runc/default ps foobar PROCESS CMD 70492 sh 70559 top [hypervsock@containerd]$sudo runv --root /run/containerd/runc/default ps foobar -f json [70492,70559] [hypervsock@containerd]$sudo ctr t ps foobar PID 70492 70559
the output of runc ps is changed. Could you also change it for runv ps? At least change it to be what containerd expects.
runc ps
@laijs updated
LGTM
Save all process info in process.json file in container root directory. With it,
runv ps
can look up and verify each of them.With it,
runv ps
works and containerd is able to interpret its result properly.