通过pid查容器名

可以使用 nsenter 列出 hostname 来查看是哪个容器

nsenter --pid --uts -t $pid   hostname

posted on 2022-08-17 16:36  Colin88  阅读(118)  评论(0)    收藏  举报