Skip to content

Commit 8e7adf5

Browse files
committed
Updated taskworkflow.go: fixes in socket name and readme.
Socket name was aligned with the quickstart guidelines (in integration tests as well). Removed the mask argument from the readme as it is not supported anymore. Signed-off-by: Dmitrii Ustiugov <[email protected]>
1 parent bbbbb74 commit 8e7adf5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

examples/taskworkflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
)
3737

3838
const (
39-
containerdAddress = "/run/containerd/containerd.sock"
39+
containerdAddress = "/run/firecracker-containerd/containerd.sock"
4040
containerdTTRPCAddress = containerdAddress + ".ttrpc"
4141
namespaceName = "firecracker-containerd-example"
4242
macAddress = "AA:FC:00:00:00:01"

examples/taskworkflow.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,20 @@ for the VM by following [these instructions](https://github.com/firecracker-micr
1919

2020
This creates a tap device named `tap0`, in the local `172.16.0.1/24` subnet.
2121
Since the example does not rely on a DHCP client running within the VM to
22-
initialize the network interface, `gw` and `mask` flags should be used to
23-
specify the gateway and subnet mask values.
22+
initialize the network interface, `gw` flag should be used to
23+
specify the gateway value.
2424

2525
The following example sets:
26-
* The IP address to `172.16.0.2`
26+
* The IP address (CIDR) to `172.16.0.2/24`
2727
* The gateway IP address to `172.16.0.1`
28-
* The subnet mask to `255.255.255.0` (`/24`)
2928

3029
** NOTE: This example will not work if you're running more than 1 container
3130
on a host at the same time **
3231

3332
Now, run the example by passing the `-ip` argument:
3433
```bash
35-
$ sudo /path/to/firecracker-containerd/examples/taskworkflow -ip 172.16.0.2 \
36-
-gw 172.16.0.1 \
37-
-mask 255.255.255.0
34+
$ sudo /path/to/firecracker-containerd/examples/taskworkflow -ip 172.16.0.2/24 \
35+
-gw 172.16.0.1
3836
```
3937

4038
You should see output similar to this:

tools/docker/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
imports = ["/etc/containerd/snapshotter/*.toml"]
2+
[grpc]
3+
address = "/run/firecracker-containerd/containerd.sock"

0 commit comments

Comments
 (0)