From dad731d5c10137b62c492f74c49dd8472b941950 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Tue, 13 Jun 2023 16:27:01 +0000 Subject: [PATCH] docs: Update Developer Guide This PR updates the developer guide at the connect to the debug console section. Fixes #7094 Signed-off-by: Gabriela Cervantes --- docs/Developer-Guide.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/Developer-Guide.md b/docs/Developer-Guide.md index 7f0b3eaa7a..2f60ab1652 100644 --- a/docs/Developer-Guide.md +++ b/docs/Developer-Guide.md @@ -587,10 +587,15 @@ $ sudo kata-monitor #### Connect to debug console -Command `kata-runtime exec` is used to connect to the debug console. +You need to start a container for example: +```bash +$ sudo ctr run --runtime io.containerd.kata.v2 -d docker.io/library/ubuntu:latest testdebug +``` + +Then, you can use the command `kata-runtime exec ` to connect to the debug console. ``` -$ kata-runtime exec 1a9ab65be63b8b03dfd0c75036d27f0ed09eab38abb45337fea83acd3cd7bacd +$ kata-runtime exec testdebug bash-4.2# id uid=0(root) gid=0(root) groups=0(root) bash-4.2# pwd