您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

怎样查看docker容器的PID

2025/6/6 23:23:57发布29次查看
一、docker container top
(推荐教程:docker教程)
[xxx@single xxx]# docker container top <container>
以redis示例
[xxx@single xxx]# docker container top redis
从输出结果中可以看到redis容器的pid
pid user time command2208 999 1:47 redis-server *:637912
二、docker container inspect
[xxx@single xxx]# docker inspect -f '{{.state.pid}}' <container>1
以redis示例
[xxx@single xxx]# docker inspect -f '{{.state.pid}}' redis1
此命令会直接输出pid
2208
以上就是怎样查看docker容器的pid的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product