mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
forwarder: Fix docs socket path
Updated the trace forwarder README to ensure the real socket path is created, not the template socket path returned by `kata-runtime env`. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
d1d9e84e9f
commit
e377578e08
@ -71,16 +71,16 @@ represents the real sandbox ID or name.
|
|||||||
#### Configured hypervisor is Cloud Hypervisor
|
#### Configured hypervisor is Cloud Hypervisor
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ socket_path=$(sudo kata-runtime env --json | jq '.Hypervisor.SocketPath')
|
$ socket_path_template=$(sudo kata-runtime env --json | jq '.Hypervisor.SocketPath')
|
||||||
$ echo "$socket_path"
|
$ echo "$socket_path_template"
|
||||||
"/run/vc/vm/{ID}/clh.sock"
|
"/run/vc/vm/{ID}/clh.sock"
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Configured hypervisor is Firecracker
|
#### Configured hypervisor is Firecracker
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ socket_path=$(sudo kata-runtime env --json | jq '.Hypervisor.SocketPath')
|
$ socket_path_template=$(sudo kata-runtime env --json | jq '.Hypervisor.SocketPath')
|
||||||
$ echo "$socket_path"
|
$ echo "$socket_path_template"
|
||||||
"/run/vc/firecracker/{ID}/root/kata.hvsock"
|
"/run/vc/firecracker/{ID}/root/kata.hvsock"
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -118,14 +118,15 @@ You will need to change the `sandbox_id` variable below to match the name of
|
|||||||
the container (sandbox) you plan to create _after_ starting the trace
|
the container (sandbox) you plan to create _after_ starting the trace
|
||||||
forwarder.
|
forwarder.
|
||||||
|
|
||||||
The `socket_path` variable was set in the
|
|
||||||
[Cloud Hypervisor and Firecracker](#cloud-hypervisor-and-firecracker) section.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sandbox_id="foo"
|
$ sandbox_id="foo"
|
||||||
|
$ socket_path=$(echo "$socket_path_template" | sed "s/{ID}/${sandbox_id}/g")
|
||||||
$ sudo mkdir -p $(dirname "$socket_path")
|
$ sudo mkdir -p $(dirname "$socket_path")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> **Note:** The `socket_path_template` variable was set in the
|
||||||
|
> [Cloud Hypervisor and Firecracker](#cloud-hypervisor-and-firecracker) section.
|
||||||
|
|
||||||
#### Run the forwarder specifying socket path
|
#### Run the forwarder specifying socket path
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user