Gary Benson: Container debugging minihint
2022-9-27 18:50:9 Author: gbenson.net(查看原文) 阅读量:7 收藏

{ 2020 01 24 }

What’s in my container?

  1. bash$ podman ps --ns
    CONTAINER ID  NAMES            PID    CGROUPNS  IPC         MNT         NET         PIDNS       USERNS      UTS
    fe11359293e8  eloquent_austin  11090            4026532623  4026532621  4026532421  4026532624  4026531837  4026532622
  2. bash$ sudo ls -l /proc/11090/root/
    total 22628
    lrwxrwxrwx.   1 root root        7 Jul 25  2019 bin -> usr/bin
    dr-xr-xr-x.   2 root root        6 Jul 25  2019 boot
    drwxr-xr-x.   5 root root      360 Jan 24 12:03 dev
    drwxr-xr-x.   1 root root      183 Jan 23 16:43 etc
     ...

Thank you.
[28 [email protected]] UPDATE—This doesn’t seem to work with newer systems, I’m investigating…


文章来源: https://gbenson.net/container-debugging-minihint/
如有侵权请联系:admin#unsafe.sh