简体   繁体   中英

How to get into an App Container Manually with Garden-RunC Backend

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

runc list

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?

(PS: Although the intent is same, I'm not looking for cf ssh)

我无法帮助使用 runc 方法(在 devops 堆栈交换中得到了回答),但是您可以通过手动安装https://github.com/contraband/gaol或通过工具带 bosh 版本使用花园 cli 来执行此操作https://github.com/cloudfoundry-community/toolbelt-boshrelease

gaol -t /var/vcap/data/garden/garden.sock shell $container-id-from-cf-dot

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM