根据容器ID获取对应的进程
UID PID PPID C STIME TTY TIME CMD
root 179733 179713 2 Dec02 ? 01:19:27 java -jar jdd-park-wx.jar
根据进程获取对应的容器ID
docker ps -q | xargs docker inspect --format '{{.State.Pid}}, {{.Name}}' | grep "^%PID%"
# docker ps -q | xargs docker inspect --format '{{.State.Pid}}, {{.Name}}' | grep "^179733"
179733, /jdd-park-wx