Skip to content

Commit 6ef65b7

Browse files
committed
Document how to use systemd-run
It is also useful when testing local changes, I just run: sudo systemd-run -p Delegate=yes -p KillMode=process bin/containerd Signed-off-by: Alban Crequy <[email protected]>
1 parent 08f7ee9 commit 6ef65b7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/ops.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ This is not what we want.
6969
As ops, we want to be able to upgrade containerd and allow existing containers to keep running without interruption.
7070
Setting `KillMode` to `process` ensures that systemd only kills the containerd daemon and not any child processes such as the shims and containers.
7171

72+
The following `systemd-run` command starts containerd in a similar way:
73+
```
74+
sudo systemd-run -p Delegate=yes -p KillMode=process /usr/local/bin/containerd
75+
```
7276

7377
## Base Configuration
7478

0 commit comments

Comments
 (0)