使用容器命名空间
docker run -it --rm --privileged --pid=host justincormack/nsenter1
进入容器
uanme -a
# Linux docker-desktop 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 Linux
cat /etc/os-relase
# PRETTY_NAME="Docker Desktop"
docker run -it --rm --privileged --pid=host justincormack/nsenter1
uanme -a
# Linux docker-desktop 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 Linux
cat /etc/os-relase
# PRETTY_NAME="Docker Desktop"