So I have been trying this-tutorial to access the runC container from the diego-cell VM. However, when I try to run
/var/vcap/packages/runc/bin/runc exec -t <instance_id> /bin/bash
I get the error
exec failed: container "<id>" does not exist
when I run cfdot for the given application it does list this instance-id, also when navigating into the location
/var/vcap/data/garden/depot/<container_id> it exists.
But runc in unable to open the container, also when I run
the list of running containers in the vm is empty
diego-cell/49dbeca6-36eb-4910-94b9-48960891a0b1:~# /var/vcap/packages/runc/bin/runc list ID PID STATUS BUNDLE CREATED OWNER diego-cell/49dbeca6-36eb-4910-94b9-48960891a0b1:~#
I've run all as root as mentioned in the link.
Why am I not able to access the runC containers, What am I missing?
P.S: Although the intent is same, I'm not looking for cf ssh