Skip to content

Instantly share code, notes, and snippets.

@nikhilsuvarna
Last active December 22, 2016 22:55
Show Gist options
  • Save nikhilsuvarna/f9b1d3629d0e34916146372b63d7076a to your computer and use it in GitHub Desktop.
Save nikhilsuvarna/f9b1d3629d0e34916146372b63d7076a to your computer and use it in GitHub Desktop.
ssh to garden-runc container
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:~$ sudo -i
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:~# /var/vcap/packages/guardian/bin/inspector-garden -pid $(pidof guardian) /bin/bash
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:/# cd /var/vcap/data/garden/depot/
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:/var/vcap/data/garden/depot# ls
bf51ff0c-65f3-4940-71ae-32e792c34e45
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:/var/vcap/data/garden/depot# cd bf51ff0c-65f3-4940-71ae-32e792c34e45/
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:/var/vcap/data/garden/depot/bf51ff0c-65f3-4940-71ae-32e792c34e45# /var/vcap/packages/runc/bin/runc exec -t bf51ff0c-65f3-4940-71ae-32e792c34e45 /bin/bash
root@bf51ff0c-65f3-4940-71ae-32e792c34e45:/# ls -l
total 84
lrwxrwxrwx   1 root   root       14 Dec 13 19:10 app -> /home/vcap/app
drwxr-xr-x   2 root   root     4096 Dec 13 19:03 bin
drwxr-xr-x   2 root   root     4096 Apr 10  2014 boot
drwxr-xr-x   4 root   root     4096 Dec 20 19:18 dev
drwxr-xr-x  80 root   root     4096 Dec 20 19:18 etc
drwxr-xr-x   4 root   root     4096 Dec 20 19:18 home
drwxr-xr-x  13 root   root     4096 Dec 13 19:04 lib
drwxr-xr-x   2 root   root     4096 Nov 23 01:31 lib64
drwx------   2 nobody nogroup 16384 Dec 20 19:18 lost+found
drwxr-xr-x   2 root   root     4096 Nov 23 01:30 media
drwxr-xr-x   2 root   root     4096 Apr 10  2014 mnt
drwxr-xr-x   2 root   root     4096 Nov 23 01:30 opt
dr-xr-xr-x 191 nobody nogroup     0 Dec 20 19:18 proc
drwx------   3 root   root     4096 Dec 13 19:09 root
drwxr-xr-x   8 root   root     4096 Nov 29 20:04 run
drwxr-xr-x   2 root   root     4096 Dec 13 19:04 sbin
drwxr-xr-x   2 root   root     4096 Nov 23 01:30 srv
dr-xr-xr-x  13 nobody nogroup     0 Dec 15 05:45 sys
drwxrwxrwt   3 root   root     4096 Dec 20 19:18 tmp
drwxr-xr-x  10 root   root     4096 Dec 13 19:10 usr
drwxr-xr-x  12 root   root     4096 Dec 13 19:10 var
root@bf51ff0c-65f3-4940-71ae-32e792c34e45:/# ps -efH
UID        PID  PPID  C STIME TTY          TIME CMD
root      5915     0  0 00:52 ?        00:00:00 /bin/bash
root      5929  5915  0 00:52 ?        00:00:00   ps -efH
vcap         6     0  0 Dec20 ?        00:00:01 /home/vcap/app/vendor/bundle/ruby/2.3.0/bin/rackup config.ru -p 8080
vcap         5     0  0 Dec20 ?        00:00:00 /tmp/lifecycle/diego-sshd --allowedKeyExchanges= --address=0.0.0.0:2222 --allowUnauthenticatedClients=false --inheritDaemonEnv=true -
root         1     0  0 Dec20 ?        00:00:00 /proc/self/exe init
root@bf51ff0c-65f3-4940-71ae-32e792c34e45:/#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment