15
15
> If you wish to use a block based backend, see the options listed on https://github.com/kata-containers/documentation/issues/407 .
16
16
17
17
``` bash
18
- $ sudo apt-get -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
18
+ $ sudo apt-get -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
19
19
$ curl -fsSL https://download.docker.com/linux/$( . /etc/os-release; echo " $ID " ) /gpg | sudo apt-key add -
20
20
$ sudo add-apt-repository " deb https://download.docker.com/linux/$( . /etc/os-release; echo " $ID " ) $( lsb_release -cs) stable"
21
21
$ sudo apt-get update
28
28
2 . Configure Docker to use Kata Containers by default with ** ONE** of the following methods:
29
29
30
30
a. ` sysVinit `
31
-
31
+
32
32
- with `sysVinit`, docker config is stored in `/etc/default/docker`, edit the options similar to the following:
33
-
33
+
34
34
```sh
35
35
$ sudo sh -c "echo '# specify docker runtime for kata-containers
36
36
DOCKER_OPTS=\"-D --add-runtime kata-runtime=/usr/bin/kata-runtime --default-runtime=kata-runtime\"' >> /etc/default/docker"
37
37
```
38
-
38
+
39
39
b. systemd (this is the default and is applied automatically if you select the
40
40
[ automatic installation] ( https://github.com/kata-containers/documentation/tree/master/install#automatic-installation ) option)
41
41
@@ -50,6 +50,12 @@ b. systemd (this is the default and is applied automatically if you select the
50
50
51
51
c. Docker ` daemon.json `
52
52
53
+ Create docker configuration folder.
54
+
55
+ ```
56
+ $ sudo mkdir -p /etc/docker
57
+ ```
58
+
53
59
Add the following definitions to `/etc/docker/daemon.json`:
54
60
55
61
```json
@@ -66,7 +72,7 @@ c. Docker `daemon.json`
66
72
3 . Restart the Docker systemd service with one of the following (depending on init choice):
67
73
68
74
a. ` sysVinit `
69
-
75
+
70
76
``` sh
71
77
$ sudo /etc/init.d/docker stop
72
78
$ sudo /etc/init.d/docker start
@@ -77,7 +83,7 @@ c. Docker `daemon.json`
77
83
` ` ` sh
78
84
$ tail -f /var/log/docker.log
79
85
` ` `
80
-
86
+
81
87
b. systemd
82
88
83
89
` ` ` bash
0 commit comments