mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-07 07:34:27 +01:00
Merge pull request #2125 from LiangZhou-CTY/patch-1
agent: fix wrong regular exp to fetch guest-cid
This commit is contained in:
@@ -80,7 +80,7 @@ $ sudo docker export $(sudo docker create "$image") | tar -C "$rootfs_dir" -xvf
|
||||
value:
|
||||
|
||||
```sh
|
||||
$ guest_cid=$(ps -ef | grep qemu-system-x86_64 | egrep -o "guest-cid=[^,][^,]*" | cut -d= -f2)
|
||||
$ guest_cid=$(ps -ef | grep qemu-system-x86_64 | egrep -o "guest-cid=[0-9]*" | cut -d= -f2)
|
||||
```
|
||||
|
||||
1. Run the tool to connect to the agent:
|
||||
|
||||
Reference in New Issue
Block a user