Tuesday, February 6, 2018

Drooling Over Docker #4 — Installing Docker CE on Linux

Choosing the right product

Docker engine comes in 2 avatars — Docker Community Edition (CE) and Docker Enterprise Edition (EE). While the CE product is free to experiment with, the EE comes for a fee (1-month free trial available).
Docker CE — Docker Community Edition (CE) webpage informs that it is a good platform for developers or small teams to learn about containerized applications.
Docker CE is made available via two update channels –
1. Stable — Updates are released quarterly (Check the available RPM packages)
2. Edge — Updates are released monthly (Check the available RPM packages)
Since 2017, Docker has moved to YY.MM style of versioning. So if you explore a Docker CE Edge repository, if you will find monthly releases there e.g. last few versions as 17.11, 17.12, and 18.01; however, the Stable repository would have the last few versions as 17.06, 17.09, and 17.12.

Installing Docker CE using repositories

As I collect details from Docker CE installation page today, amongst Linux distributions, Docker CE is available for CentOS, Fedora, Debian and Ubuntu Linux only. Let us see how to intall it on CentOS & Ubuntu -
1. Prerequisites
  • For CentOS — to have CentOS 7; centos-extras repository enabled (remains enabled by default)
  • For Ubuntuto have any of the following 64-bit Ubuntu versions — Artful 17.10(Docker CE 17.11 Edge and higher only); Zesty 17.04Xenial 16.04(LTS);Trusty 14.04(LTS)
2. Installing Necessary Packages
  • For CentOS#yum install -y yum-utils device-mapper-persistent-data lvm2
  • For Ubuntu# apt-get update ; # apt-get install apt-transport-https ca-certificates curl software-properties-common;
3. Adding Docker GPG Key
4. Adding Docker CE Repository
5. Installing Docker CE From The Repositories
Installing the latest update from the repository
  • For CentOS# yum install docker-ce;
  • For Ubuntu# apt-get update ; # apt-get install docker-ce
Installing the chosen version from the repository
  • For CentOS#yum list docker-ce — showduplicates; #yum install docker-ce-.ce;
  • For Ubuntu# apt-cache madison docker-ce; #apt-get install docker-ce=
Contd…
— — — — — — — — — — — — — — — — — — — — — — — — — — — — 
Resources:
  1. https://blog.docker.com/2017/03/docker-enterprise-edition/ — Docker Versioning
  2. https://docs.docker.com/install/linux/docker-ce/centos/ — Docker CE on CentOS
  3. https://docs.docker.com/install/linux/docker-ce/ubuntu/ Docker CE on Ubuntu

2 comments:

Drooling Over Docker #4 — Installing Docker CE on Linux

Choosing the right product Docker engine comes in 2 avatars — Docker Community Edition (CE) and Docker Enterprise Edition (EE). While the...