summarylogtreecommitdiffstats
path: root/kata-runtime.install
blob: bf29b5a97eae3c768fbc6803a5ecc09c3dab3b45 (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
37
38
39
40
41
42
43
44
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"
      },
    }
}

"""

- to run Kata with Firecracker, due to Firecracker's limitations, you have to set your Docker storage driver (ref: https://docs.docker.com/storage/storagedriver/select-storage-driver/ ) to 'devicemapper' in /etc/docker/daemon.json
"""
{
    "storage-driver": "devicemapper"
}
"""

EOF

}