Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit a0e37e1

Browse files
committed
docs: Update docker installation guides for /etc/docker
Added explanation that the `/etc/docker/` directory needs to be created. Fixes: #569. Signed-off-by: shinebayar-g <[email protected]>
1 parent 4a65bad commit a0e37e1

8 files changed

+121
-79
lines changed

install/aws-installation-guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Install Kata Containers on Amazon Web Services
1+
# Install Kata Containers on Amazon Web Services
22

33
* [Install and Configure AWS CLI](#install-and-configure-aws-cli)
44
* [Create or Import an EC2 SSH key pair](#create-or-import-an-ec2-ssh-key-pair)

install/docker/centos-docker-install.md

+18-12
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,24 @@
3737
3838
2. Docker `daemon.json`
3939
40-
Add the following definitions to `/etc/docker/daemon.json`:
41-
42-
```json
43-
{
44-
"default-runtime": "kata-runtime",
45-
"runtimes": {
46-
"kata-runtime": {
47-
"path": "/usr/bin/kata-runtime"
48-
}
49-
}
50-
}
51-
```
40+
Create docker configuration folder.
41+
42+
```
43+
$ sudo mkdir -p /etc/docker
44+
```
45+
46+
Add the following definitions to `/etc/docker/daemon.json`:
47+
48+
```json
49+
{
50+
"default-runtime": "kata-runtime",
51+
"runtimes": {
52+
"kata-runtime": {
53+
"path": "/usr/bin/kata-runtime"
54+
}
55+
}
56+
}
57+
```
5258
5359
3. Restart the Docker systemd service with the following commands:
5460

install/docker/debian-docker-install.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
> If you wish to use a block based backend, see the options listed on https://github.com/kata-containers/documentation/issues/407.
1616
1717
```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
1919
$ curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
2020
$ sudo add-apt-repository "deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"
2121
$ sudo apt-get update
@@ -28,14 +28,14 @@
2828
2. Configure Docker to use Kata Containers by default with **ONE** of the following methods:
2929

3030
a. `sysVinit`
31-
31+
3232
- with `sysVinit`, docker config is stored in `/etc/default/docker`, edit the options similar to the following:
33-
33+
3434
```sh
3535
$ sudo sh -c "echo '# specify docker runtime for kata-containers
3636
DOCKER_OPTS=\"-D --add-runtime kata-runtime=/usr/bin/kata-runtime --default-runtime=kata-runtime\"' >> /etc/default/docker"
3737
```
38-
38+
3939
b. systemd (this is the default and is applied automatically if you select the
4040
[automatic installation](https://github.com/kata-containers/documentation/tree/master/install#automatic-installation) option)
4141

@@ -50,6 +50,12 @@ b. systemd (this is the default and is applied automatically if you select the
5050

5151
c. Docker `daemon.json`
5252

53+
Create docker configuration folder.
54+
55+
```
56+
$ sudo mkdir -p /etc/docker
57+
```
58+
5359
Add the following definitions to `/etc/docker/daemon.json`:
5460

5561
```json
@@ -66,7 +72,7 @@ c. Docker `daemon.json`
6672
3. Restart the Docker systemd service with one of the following (depending on init choice):
6773

6874
a. `sysVinit`
69-
75+
7076
```sh
7177
$ sudo /etc/init.d/docker stop
7278
$ sudo /etc/init.d/docker start
@@ -77,7 +83,7 @@ c. Docker `daemon.json`
7783
```sh
7884
$ tail -f /var/log/docker.log
7985
```
80-
86+
8187
b. systemd
8288

8389
```bash

install/docker/fedora-docker-install.md

+18-12
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,24 @@
3939
4040
2. Docker `daemon.json`
4141
42-
Add the following definitions to `/etc/docker/daemon.json`:
43-
44-
```json
45-
{
46-
"default-runtime": "kata-runtime",
47-
"runtimes": {
48-
"kata-runtime": {
49-
"path": "/usr/bin/kata-runtime"
50-
}
51-
}
52-
}
53-
```
42+
Create docker configuration folder.
43+
44+
```
45+
$ sudo mkdir -p /etc/docker
46+
```
47+
48+
Add the following definitions to `/etc/docker/daemon.json`:
49+
50+
```json
51+
{
52+
"default-runtime": "kata-runtime",
53+
"runtimes": {
54+
"kata-runtime": {
55+
"path": "/usr/bin/kata-runtime"
56+
}
57+
}
58+
}
59+
```
5460
5561
3. Restart the Docker systemd service with the following commands:
5662

install/docker/opensuse-docker-install.md

+18-12
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,24 @@
3737

3838
2. Docker `daemon.json`
3939

40-
Add the following definitions to `/etc/docker/daemon.json`:
41-
42-
```json
43-
{
44-
"default-runtime": "kata-runtime",
45-
"runtimes": {
46-
"kata-runtime": {
47-
"path": "/usr/bin/kata-runtime"
48-
}
49-
}
50-
}
51-
```
40+
Create docker configuration folder.
41+
42+
```
43+
$ sudo mkdir -p /etc/docker
44+
```
45+
46+
Add the following definitions to `/etc/docker/daemon.json`:
47+
48+
```json
49+
{
50+
"default-runtime": "kata-runtime",
51+
"runtimes": {
52+
"kata-runtime": {
53+
"path": "/usr/bin/kata-runtime"
54+
}
55+
}
56+
}
57+
```
5258

5359
3. Restart the Docker systemd service with the following commands:
5460

install/docker/rhel-docker-install.md

+18-12
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,24 @@
3838
3939
2. Docker `daemon.json`
4040
41-
Add the following definitions to `/etc/docker/daemon.json`:
42-
43-
```json
44-
{
45-
"default-runtime": "kata-runtime",
46-
"runtimes": {
47-
"kata-runtime": {
48-
"path": "/usr/bin/kata-runtime"
49-
}
50-
}
51-
}
52-
```
41+
Create docker configuration folder.
42+
43+
```
44+
$ sudo mkdir -p /etc/docker
45+
```
46+
47+
Add the following definitions to `/etc/docker/daemon.json`:
48+
49+
```json
50+
{
51+
"default-runtime": "kata-runtime",
52+
"runtimes": {
53+
"kata-runtime": {
54+
"path": "/usr/bin/kata-runtime"
55+
}
56+
}
57+
}
58+
```
5359
5460
3. Restart the Docker systemd service with the following commands:
5561

install/docker/sles-docker-install.md

+18-12
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,24 @@
3636
3737
2. Docker `daemon.json`
3838
39-
Add the following definitions to `/etc/docker/daemon.json`:
40-
41-
```json
42-
{
43-
"default-runtime": "kata-runtime",
44-
"runtimes": {
45-
"kata-runtime": {
46-
"path": "/usr/bin/kata-runtime"
47-
}
48-
}
49-
}
50-
```
39+
Create docker configuration folder.
40+
41+
```
42+
$ sudo mkdir -p /etc/docker
43+
```
44+
45+
Add the following definitions to `/etc/docker/daemon.json`:
46+
47+
```json
48+
{
49+
"default-runtime": "kata-runtime",
50+
"runtimes": {
51+
"kata-runtime": {
52+
"path": "/usr/bin/kata-runtime"
53+
}
54+
}
55+
}
56+
```
5157
5258
3. Restart the Docker systemd service with the following commands:
5359

install/docker/ubuntu-docker-install.md

+18-12
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,24 @@
4141
4242
2. Docker `daemon.json`
4343
44-
Add the following definitions to `/etc/docker/daemon.json`:
45-
46-
```json
47-
{
48-
"default-runtime": "kata-runtime",
49-
"runtimes": {
50-
"kata-runtime": {
51-
"path": "/usr/bin/kata-runtime"
52-
}
53-
}
54-
}
55-
```
44+
Create docker configuration folder.
45+
46+
```
47+
$ sudo mkdir -p /etc/docker
48+
```
49+
50+
Add the following definitions to `/etc/docker/daemon.json`:
51+
52+
```json
53+
{
54+
"default-runtime": "kata-runtime",
55+
"runtimes": {
56+
"kata-runtime": {
57+
"path": "/usr/bin/kata-runtime"
58+
}
59+
}
60+
}
61+
```
5662
5763
3. Restart the Docker systemd service with the following commands:
5864

0 commit comments

Comments
 (0)