ps -ef|grep 容器Id
[root@wentao-2 order]# ps -ef|grep 3a61cb3fd4f6
root 7358 12956 0 09:14 ? 00:00:00 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/3a61cb3fd4f64f6fed464ca6c7185c5138c9256ac8ceb049b9527272573e994d -address /run/containerd/containerd.sock -containerd-binary /usr/bin/containerd -runtime-root /var/run/docker/runtime-runc
root 7893 5652 0 09:19 pts/0 00:00:00 grep --color=auto 3a61cb3fd4f6
top -p 7358(pid)
[root@wentao-2 order]# top -p 7358
top - 09:22:14 up 103 days, 18:13, 2 users, load average: 0.04, 0.09, 0.12
Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.8 us, 0.3 sy, 0.0 ni, 98.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8010424 total, 170620 free, 7303264 used, 536540 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 369860 avail Mem
PID USER PR NI VIRT