在容器中查看容器自己的id
···
cat /proc/self/cgroup | grep /docker | head -1 | cut -d/ -f3
···

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐