宿主机上通过pid找到对应docker 方法1 cat /proc/<PID>/cgroup docker inspect <containerId> 方法2 nsenter -m -u -i -n -p -t <PID> sh