Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Latest commit

 

History

History
59 lines (44 loc) · 1.85 KB

fedora-installation-guide.md

File metadata and controls

59 lines (44 loc) · 1.85 KB

Installing Clear Containers 3.0 on Fedora

Note:

If you are installing on a system that already has Clear Containers 2.x installed, first read the upgrading document.

Clear Containers 3.0 is available for Fedora* versions 24 and 25.

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 fast
$ sudo dnf -y install docker-ce

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

  1. Install the Clear Containers 3.0 components with the following commands:
$ source /etc/os-release
$ sudo -E VERSION_ID=$VERSION_ID dnf config-manager --add-repo \
http://download.opensuse.org/repositories/home:/clearcontainers:/clear-containers-3/Fedora\_$VERSION_ID/home:clearcontainers:clear-containers-3.repo
$ sudo -E dnf -y install cc-runtime cc-proxy cc-shim
  1. Configure Docker to use Clear 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/clear-containers.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -D --add-runtime cc-runtime=/usr/bin/cc-runtime --default-runtime=cc-runtime
EOF
  1. Restart the Docker and Clear Containers systemd services with the following commands:
$ sudo systemctl daemon-reload
$ sudo systemctl enable docker.service
$ sudo systemctl restart docker
$ sudo systemctl enable cc-proxy.socket
$ sudo systemctl start cc-proxy.socket
  1. Run Clear Containers 3.0.

You are now ready to run Clear Containers 3.0. For example:

$ sudo docker run -ti fedora bash