Files
kata-containers/install/fedora-installation-guide.md
James O. D. Hunt 6e83bdbd75 docs: Ensure install doc bash commands are non-interactive
Remove the `bash` tag from the last command in the install guides where
we show the user how to create a container with a busybox shell. This
doesn't change the content of the document but it ensures that all bash
blocks can be run non-interactively (by the `kata-doc-to-script.sh`
script in the tests repo).

Fixes #109.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-05-21 16:13:02 +01:00

1.7 KiB

Installing Kata Containers on Fedora

Note: Kata Containers is available for Fedora* versions 26 and 27.

This step is only required in case Docker is not installed on the system.

  1. Install the latest version of Docker with the following commands:
$ sudo dnf -y install dnf-plugins-core
$ sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
$ sudo dnf makecache
$ sudo dnf -y install docker-ce

For more information on installing Docker please refer to the Docker Guide

  1. Install the Kata Containers components with the following commands:

Note: The repository redirects the download content to use http, be aware that this installation channel is not secure.

$ source /etc/os-release
$ sudo -E VERSION_ID=$VERSION_ID dnf config-manager --add-repo \
http://download.opensuse.org/repositories/home:/katacontainers:/release/Fedora\_$VERSION_ID/home:katacontainers:release.repo
$ sudo -E dnf -y install kata-runtime kata-proxy kata-shim
  1. Configure Docker to use Kata Containers by default with the following commands:
$ sudo mkdir -p /etc/systemd/system/docker.service.d/
$ cat <<EOF | sudo tee /etc/systemd/system/docker.service.d/kata-containers.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -D --add-runtime kata-runtime=/usr/bin/kata-runtime --default-runtime=kata-runtime
EOF
  1. Restart the Docker systemd service with the following commands:
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
  1. Run Kata Containers

You are now ready to run Kata Containers:

$ sudo docker run -ti busybox sh