You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rootless.md
+29-7Lines changed: 29 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,27 @@ A non-root user can execute containerd by using [`user_namespaces(7)`](http://ma
4
4
5
5
For example [RootlessKit](https://github.com/rootless-containers/rootlesskit) can be used for setting up a user namespace (along with mount namespace and optionally network namespace). Please refer to RootlessKit documentation for further information.
6
6
7
-
See also [Rootless Docker documentation](https://docs.docker.com/engine/security/rootless/).
7
+
See also https://rootlesscontaine.rs/.
8
8
9
-
## Daemon
9
+
## "Easy way"
10
+
11
+
The easiest way is to use `containerd-rootless-setuptool.sh` included in [containerd/nerdctl](https://github.com/containerd/nerdctl).
12
+
13
+
```console
14
+
$ containerd-rootless-setuptool.sh install
15
+
$ nerdctl run -d --restart=always --name nginx -p 8080:80 nginx:alpine
16
+
```
17
+
18
+
See https://github.com/containerd/nerdctl/blob/master/docs/rootless.md for the further information.
19
+
20
+
## "Hard way"
21
+
22
+
<details>
23
+
<summary>Click here to show the "hard way"</summary>
*`--net=slirp4netns --copy-up=/etc` is only required when you want to unshare network namespaces.
18
-
See [RootlessKit documentation](https://github.com/rootless-containers/rootlesskit/tree/v0.10.0#network-drivers) for the further information about the network drivers.
36
+
See [RootlessKit documentation](https://github.com/rootless-containers/rootlesskit/blob/v0.14.1/docs/network.md) for the further information about the network drivers.
19
37
*`--copy-up=/DIR` mounts a writable tmpfs on `/DIR` with symbolic links to the files under the `/DIR` on the parent namespace
20
38
so that the user can add/remove files under `/DIR` in the mount namespace.
21
39
`--copy-up=/etc` and `--copy-up=/run` are needed on typical setup.
@@ -33,7 +51,7 @@ state = "/run/user/1001/containerd"
0 commit comments