The entire installation of Docker on Fedora Linux consists of four simple to follow steps:
  1. Install Docker package
  2. Start docker service
  3. Confirm that docker started correctly
  4. Enable docker to start after reboot
Let's start by the actual docker installation on Fedora Linux.
# yum install docker
The above yum command will install docker package and make the service available to start. Once you have performed the docker installation start docker service:
# service docker start     
Redirecting to /bin/systemctl start  docker.service
At this stage we need to confirm that docker started correctly. Run the below docker command to see a detailed information about your docker installation. Your output will vary:
# docker info
Containers: 0
Images: 0
Storage Driver: devicemapper
 Pool Name: docker-253:1-299032-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: extfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 305.7 MB
 Data Space Total: 107.4 GB
 Metadata Space Used: 729.1 kB
 Metadata Space Total: 2.147 GB
 Udev Sync Supported: true
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.90 (2014-09-01)
Execution Driver: native-0.2
Kernel Version: 3.17.4-301.fc21.x86_64
Operating System: Fedora 21 (Twenty One)
CPUs: 1
Total Memory: 993.8 MiB
Name: localhost.localdomain
ID: 4LY6:V5C3:QFQ5:I72O:ZJQT:474Q:HQZM:KUX2:OCZK:CNNC:RPNF:XSJK
Additionally to further confirm your Docker installation create your first docker container. The below command will create a new Fedora Linux container.:
]# docker run -i -t fedora /bin/bash
Unable to find image 'fedora:latest' locally
Pulling repository fedora
834629358fe2: Downloading 78.94 MB
834629358fe2: Download complete 
00a0c78eeb6d: Download complete 

Status: Downloaded newer image for fedora:latest

bash-4.3#
Run exit command in order to exit from you new Fedora container. Lastly, we need to enable docker service to start after reboot:
# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: