diff --git a/install/aws-installation-guide.md b/install/aws-installation-guide.md index abba3efac2..65d9e860ba 100644 --- a/install/aws-installation-guide.md +++ b/install/aws-installation-guide.md @@ -1,4 +1,4 @@ -# Install Kata Containers on Amazon Web Services +# Install Kata Containers on Amazon Web Services * [Install and Configure AWS CLI](#install-and-configure-aws-cli) * [Create or Import an EC2 SSH key pair](#create-or-import-an-ec2-ssh-key-pair) diff --git a/install/docker/centos-docker-install.md b/install/docker/centos-docker-install.md index a46c5939dc..203605fce7 100644 --- a/install/docker/centos-docker-install.md +++ b/install/docker/centos-docker-install.md @@ -37,18 +37,24 @@ 2. Docker `daemon.json` - Add the following definitions to `/etc/docker/daemon.json`: + Create docker configuration folder. - ```json - { - "default-runtime": "kata-runtime", - "runtimes": { - "kata-runtime": { - "path": "/usr/bin/kata-runtime" - } - } - } - ``` + ``` + $ sudo mkdir -p /etc/docker + ``` + + Add the following definitions to `/etc/docker/daemon.json`: + + ```json + { + "default-runtime": "kata-runtime", + "runtimes": { + "kata-runtime": { + "path": "/usr/bin/kata-runtime" + } + } + } + ``` 3. Restart the Docker systemd service with the following commands: diff --git a/install/docker/debian-docker-install.md b/install/docker/debian-docker-install.md index 82bf8ed0ca..3031017107 100644 --- a/install/docker/debian-docker-install.md +++ b/install/docker/debian-docker-install.md @@ -15,7 +15,7 @@ > If you wish to use a block based backend, see the options listed on https://github.com/kata-containers/documentation/issues/407. ```bash - $ sudo apt-get -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common + $ sudo apt-get -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common $ curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - $ sudo add-apt-repository "deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable" $ sudo apt-get update @@ -28,14 +28,14 @@ 2. Configure Docker to use Kata Containers by default with **ONE** of the following methods: a. `sysVinit` - + - with `sysVinit`, docker config is stored in `/etc/default/docker`, edit the options similar to the following: - + ```sh $ sudo sh -c "echo '# specify docker runtime for kata-containers DOCKER_OPTS=\"-D --add-runtime kata-runtime=/usr/bin/kata-runtime --default-runtime=kata-runtime\"' >> /etc/default/docker" ``` - + b. systemd (this is the default and is applied automatically if you select the [automatic installation](https://github.com/kata-containers/documentation/tree/master/install#automatic-installation) option) @@ -50,6 +50,12 @@ b. systemd (this is the default and is applied automatically if you select the c. Docker `daemon.json` + Create docker configuration folder. + + ``` + $ sudo mkdir -p /etc/docker + ``` + Add the following definitions to `/etc/docker/daemon.json`: ```json @@ -66,7 +72,7 @@ c. Docker `daemon.json` 3. Restart the Docker systemd service with one of the following (depending on init choice): a. `sysVinit` - + ```sh $ sudo /etc/init.d/docker stop $ sudo /etc/init.d/docker start @@ -77,7 +83,7 @@ c. Docker `daemon.json` ```sh $ tail -f /var/log/docker.log ``` - + b. systemd ```bash diff --git a/install/docker/fedora-docker-install.md b/install/docker/fedora-docker-install.md index 1cb8c950d7..e7e86440cc 100644 --- a/install/docker/fedora-docker-install.md +++ b/install/docker/fedora-docker-install.md @@ -39,18 +39,24 @@ 2. Docker `daemon.json` - Add the following definitions to `/etc/docker/daemon.json`: + Create docker configuration folder. - ```json - { - "default-runtime": "kata-runtime", - "runtimes": { - "kata-runtime": { - "path": "/usr/bin/kata-runtime" - } - } - } - ``` + ``` + $ sudo mkdir -p /etc/docker + ``` + + Add the following definitions to `/etc/docker/daemon.json`: + + ```json + { + "default-runtime": "kata-runtime", + "runtimes": { + "kata-runtime": { + "path": "/usr/bin/kata-runtime" + } + } + } + ``` 3. Restart the Docker systemd service with the following commands: diff --git a/install/docker/opensuse-docker-install.md b/install/docker/opensuse-docker-install.md index 0302ecb1dd..1d19d7235e 100644 --- a/install/docker/opensuse-docker-install.md +++ b/install/docker/opensuse-docker-install.md @@ -37,18 +37,24 @@ 2. Docker `daemon.json` - Add the following definitions to `/etc/docker/daemon.json`: + Create docker configuration folder. - ```json - { - "default-runtime": "kata-runtime", - "runtimes": { - "kata-runtime": { - "path": "/usr/bin/kata-runtime" - } - } - } - ``` + ``` + $ sudo mkdir -p /etc/docker + ``` + + Add the following definitions to `/etc/docker/daemon.json`: + + ```json + { + "default-runtime": "kata-runtime", + "runtimes": { + "kata-runtime": { + "path": "/usr/bin/kata-runtime" + } + } + } + ``` 3. Restart the Docker systemd service with the following commands: diff --git a/install/docker/rhel-docker-install.md b/install/docker/rhel-docker-install.md index 3f5ac95ce0..073451e25c 100644 --- a/install/docker/rhel-docker-install.md +++ b/install/docker/rhel-docker-install.md @@ -38,18 +38,24 @@ 2. Docker `daemon.json` - Add the following definitions to `/etc/docker/daemon.json`: + Create docker configuration folder. - ```json - { - "default-runtime": "kata-runtime", - "runtimes": { - "kata-runtime": { - "path": "/usr/bin/kata-runtime" - } - } - } - ``` + ``` + $ sudo mkdir -p /etc/docker + ``` + + Add the following definitions to `/etc/docker/daemon.json`: + + ```json + { + "default-runtime": "kata-runtime", + "runtimes": { + "kata-runtime": { + "path": "/usr/bin/kata-runtime" + } + } + } + ``` 3. Restart the Docker systemd service with the following commands: diff --git a/install/docker/sles-docker-install.md b/install/docker/sles-docker-install.md index 25937ead53..0e925c2fae 100644 --- a/install/docker/sles-docker-install.md +++ b/install/docker/sles-docker-install.md @@ -36,18 +36,24 @@ 2. Docker `daemon.json` - Add the following definitions to `/etc/docker/daemon.json`: + Create docker configuration folder. - ```json - { - "default-runtime": "kata-runtime", - "runtimes": { - "kata-runtime": { - "path": "/usr/bin/kata-runtime" - } - } - } - ``` + ``` + $ sudo mkdir -p /etc/docker + ``` + + Add the following definitions to `/etc/docker/daemon.json`: + + ```json + { + "default-runtime": "kata-runtime", + "runtimes": { + "kata-runtime": { + "path": "/usr/bin/kata-runtime" + } + } + } + ``` 3. Restart the Docker systemd service with the following commands: diff --git a/install/docker/ubuntu-docker-install.md b/install/docker/ubuntu-docker-install.md index 307d30bf14..3491528852 100644 --- a/install/docker/ubuntu-docker-install.md +++ b/install/docker/ubuntu-docker-install.md @@ -41,18 +41,24 @@ 2. Docker `daemon.json` - Add the following definitions to `/etc/docker/daemon.json`: + Create docker configuration folder. - ```json - { - "default-runtime": "kata-runtime", - "runtimes": { - "kata-runtime": { - "path": "/usr/bin/kata-runtime" - } - } - } - ``` + ``` + $ sudo mkdir -p /etc/docker + ``` + + Add the following definitions to `/etc/docker/daemon.json`: + + ```json + { + "default-runtime": "kata-runtime", + "runtimes": { + "kata-runtime": { + "path": "/usr/bin/kata-runtime" + } + } + } + ``` 3. Restart the Docker systemd service with the following commands: