mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-15 11:34:22 +01:00
Change the installation guides so that all commands the user must type use an explicit bash code block rather than a standard code block. This adds meaning to the documents and will then allow us to extract the commands and run them for testing purposes. Fixes #92. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
1.5 KiB
1.5 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.
- 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
- Install the Kata Containers components with the following commands:
$ source /etc/os-release
$ sudo -E VERSION_ID=$VERSION_ID dnf config-manager --add-repo \
https://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
- 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
- Restart the Docker systemd service with the following commands:
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
- Run Kata Containers
You are now ready to run Kata Containers:
$ sudo docker run -ti busybox sh