chroot



```typemkdir new-root/lib -pmkdir new-root/lib64 -pmkdir new-root/bin -pcp /bin/bash new-root/bin/ldd /bin/bashcp /lib/x86_64-linux-gnu/libtinfo.so.5 new-root/lib/cp /lib/x86_64-linux-gnu/libdl.so.2 new-root/lib/cp /lib/x86_64-linux-gnu/libc.so.6 new-root/lib/cp /lib64/ld-linux-x86-64.so.2 new-root/lib64/chroot new-root /bin/bash```


root 밖으로 벗어날 수 없음 일반적으로
하지만 `escape_chroot.c` 같은 파일로 탈옥가능
탈옥했다는 거는 real root를 취득했다는 말

### docker image chroot
```typecd /tmpmkdir nginx-rootdocker export $(docker create nginx) | tar -C nginx-root -xvf -chroot nginx-root /bin/shls```



> [Google Cloud metrics | Cloud Monitoring](http://cloud.google.com/monitoring/api/metrics_gcp#gcp-run)





