summarylogtreecommitdiffstats
path: root/kata-runtime.install
blob: e5f38571e99579d7032c56ae727b7f5e77ea489d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
post_install() {
  cat <<EOF

To use kata-runtime with docker,
- add the following config to /etc/docker/daemon.json
"""
{
    "runtimes": {
      "kata": {
        "path": "/usr/bin/kata-runtime"
      }
    }
}
"""
  and restart the docker daemon

- run containers with the "--runtime=kata" options to use kata-runtime
"""
$ docker run --runtime=kata --rm busybox date
"""

- to set kata as the default runtime, add '"default-runtime": "kata"' to /etc/docker/daemon.json and restart the docker daemon
"""
{
    "runtimes": {
      "kata": {
        "path": "/usr/bin/kata-runtime"
      },
      "default-runtime": "kata"
    }
}
"""

EOF

}