Docker
docker nsenter
# nsenter nsenter라는 명령어는 namespace enter의 약어. 격리된 namespace에 진입하는 명령어. 1. centos 이미지로 test1 컨테이너 실행 [root@centos7 ~]# docker run -it --name test1 centos [root@a97f2864a314 /]# ctrl p+q 눌러서 빠져나오기 [root@centos7 ~]# [root@centos7 ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a97f2864a314 centos "/bin/bash" 6 seconds ago Up 6 seconds test1 2. namespace pid 확인 [root@centos7 ~\]#..
2021. 5. 31. 18:43