Skip to content

Commit

Permalink
add systemd deploy
Browse files Browse the repository at this point in the history
Signed-off-by: chenkang <[email protected]>
  • Loading branch information
wuhua.ck authored and chenk008 committed Apr 22, 2021
1 parent 93ec784 commit f076c7d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/deploy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Deploy Stargz Snapshotter

We assume that you are using containerd (> v1.4.2) as a CRI runtime.

## Systemd

- Download release tarfile from https://github.com/containerd/stargz-snapshotter/releases/download/v0.5.0/stargz-snapshotter-v0.5.0-linux-amd64.tar.gz

- Modify /etc/containerd/config.toml according to https://github.com/containerd/stargz-snapshotter/blob/master/script/config/etc/containerd/config.toml

- Install fuse

###### centos
```
yum install fuse
modprobe fuse
```

###### ubunut
```
apt-get install fuse
modprobe fuse
```

- Start stargz-snapshotter and restart containerd
```
tar -xvf stargz-snapshotter-${version}-linux-${arch}.tar.gz -C /usr/local/bin
wget -O /etc/systemd/system/stargz-snapshotter.service https://github.com/containerd/stargz-snapshotter/blob/master/script/config/etc/systemd/system/stargz-snapshotter.service
systemctl enable stargz-snapshotter
systemctl start stargz-snapshotter
systemctl restart containerd
```

0 comments on commit f076c7d

Please sign in to comment.