From Fedora Project Wiki

Revision as of 10:15, 6 February 2017 by Mschorm (talk | contribs) (→‎Installing Docker packages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page deals with using Fedora to run Docker containers.

Using Docker on Fedora

Installing and Configuring Docker on Fedora

System Requirements

  • Docker can run only on 64 bit systems (for now, at least).
  • Fedora 19 and onwards are supported.
  • Kernel version 3.8 and above are supported. 3.2 to 3.5 are known to be unstable with docker

Installing Docker packages

First off we need get the docker

$ sudo yum install docker

To start the docker service use systemctl:

$ sudo systemctl start docker

To make sure the docker service remains enabled across reboots:

$ sudo systemctl enable docker

We can launch a Docker running Fedora image by doing the following:

$ sudo docker run -i -t fedora /bin/bash

The command above will download the Fedora image from Docker public repos and run it.