From Fedora Project Wiki
No edit summary |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
== System Requirements == | == System Requirements == | ||
* Docker can run only on 64 bit systems (for now, at least). | * 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 | * Kernel version 3.8 and above are supported. 3.2 to 3.5 are known to be unstable with docker | ||
== Installing Docker packages == | == Installing Docker packages == | ||
First off we need to get rid of docker package which is known to conflict as per [https://bugzilla.redhat.com/show_bug.cgi?id=1043676 | First off we need to get rid of docker package which is known to conflict as per [https://bugzilla.redhat.com/show_bug.cgi?id=1043676 this bug] | ||
$ sudo yum -y remove docker | $ sudo yum -y remove docker | ||
$ sudo yum -y install docker-io | $ sudo yum -y install docker-io | ||
To start the docker service use systemctl | To start the docker service use systemctl: | ||
$ sudo systemctl start docker | $ 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: | We can launch a Docker running Fedora image by doing the following: | ||
$ sudo docker run -i -t fedora /bin/bash | $ sudo docker run -i -t fedora /bin/bash | ||
The command above will download the Fedora image from Docker public repos and run it. | The command above will download the Fedora image from Docker public repos and run it. |
Revision as of 02:35, 1 August 2014
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 to get rid of docker package which is known to conflict as per this bug
$ sudo yum -y remove docker $ sudo yum -y install docker-io
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.