Merge pull request #2125 from LiangZhou-CTY/patch-1

agent: fix wrong regular exp to fetch guest-cid
This commit is contained in:
Julio Montes
2021-07-06 07:01:43 -05:00
committed by GitHub

View File

@@ -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: