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
commit 7d3cf04f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: