summarylogtreecommitdiffstats
path: root/kata-runtime.install
blob: 4329e1e65ee99fccf53ef5c7c2ebef9f0710d948 (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
"""
{
    "default-runtime": "kata",
    "runtimes": {
      "kata": {
        "path": "/usr/bin/kata-runtime"
      },
    }
}
"""

EOF

}