如何在Windows容器中获取Windows容器ID? [英] How to gain windows container id in windows container?
本文介绍了如何在Windows容器中获取Windows容器ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在windows容器中获取windows容器id,如linux容器使用/ proc / self / cgroup获取容器ID?
How to gain windows container id in windows container like linux container get container-id using /proc/self/cgroup ?
推荐答案
我是不确定你是如何管理容器的
I'm not sure how you are trying to manage your container
要获取我正在运行的容器的容器ID,我只需使用命令提示符并输入"docker ps"。
To get the container-id of a container I'm running I just use a command prompt and type "docker ps".
一般来说,我们试图让linux和windows容器的管理体验相似 - 这对你有用吗?
In general we are trying to make the management experience for linux and windows containers similar - does this work for you?
这篇关于如何在Windows容器中获取Windows容器ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文