Skip to content

Debugging the Microkernel

Hippie Hacker edited this page Jun 22, 2016 · 1 revision

To get to a shell inside the Hanlon Microkernel docker image running on a host:

$ ssh -t rancher@$IP "HNL_MK_CONTAINER=\$(docker ps | grep hnl_mk | awk '{print \$1}'); docker exec -ti \$HNL_MK_CONTAINER /bin/bash"Warning: Permanently added '1.1.1.5' (ECDSA) to the list of known hosts.
[email protected]'s password: 
bash-4.3# ps
PID   USER     TIME   COMMAND
    1 root       0:00 /bin/bash -c /usr/local/bin/hnl_mk_init.rb && read -p "waiting..."
   62 root       0:00 ruby /usr/local/bin/hnl_mk_web_server.rb
   70 root       0:03 {ruby} hnl_mk_control_server.rb
 3802 root       0:00 /bin/bash
 3817 root       0:00 ps
bash-4.3# 
Clone this wiki locally