This tutorial help ot install docker on window or Linux OS, Earlier I have shared docker tutorial about to Introduction of Docker.This is second tutorial of docker series tutorial.
You can install docker on different flavor of Linux, windows and mac operating system.The docker is available in two editions one is Community Edition (CE) and other is Enterprise Edition (EE).
Docker Community Docker Community Edition (CE) is ideal for developers and small teams looking to get started with Docker and experimenting with container-based apps.
Docker Enterprise Edition Docker Enterprise Edition (EE) is designed for enterprise development and IT teams who build, ship, and run business critical applications in production at scale.Docker CE has two update channels, stable(updates every quarter) and edge(update every month).
There are following differences between Community Edition (CE) and Enterprise Edition (EE).
|Capabilities||Community Edition||Enterprise Edition Basic||Enterprise Edition Standard||Enterprise Edition Advanced|
|Container engine and built in orchestration, networking, security|
|Certified infrastructure, plugins and ISV containers|
|Container app management|
|Image security scanning|
before the invent of containerization, we are using virtualization(hypervisor) which support hardware virtualization that create overhead of system resource.The virtualization disadvantages are heavyweight nature of virtual machines(VM), the lack of application portability and slowness of IT resources etc.
The Containerization remove disadvantages of virtualization like speed, resource overhead but have one disadvantages like security of apps, if someone have access machine OS then can access all running containers but you can remove this advantages as well using VM, so you need to create hybrid system that contains guest OS and gust OS will have many containers.
There are following differences between containerization and virtualization:
|1||Represents Hardware-level Virtualization||Represents OS-level Virtualization|
|3||Slow provisioning||Real Time provisioning and scalability|
|4||Limited Performance||Native Performance|
|5||Fully isolated and hence more secure||“>Process level isolated and hence less secure|
Prerequisites for Ubuntu
There are following Linux flavor supported docker 64 bit version,
- Yakkety 16.10
- Xenial 16.04 (LTS)
- Trusty 14.04 (LTS)
Prerequisites for Windows
- The Hyper-V package must be enabled. The Docker for Windows installer will enable it for you, if needed.This step requires a reboot of system.
Docker Installation type
You can install docker different ways as per your feasibility.You can install Docker on system using one of them given option,
- Set up Docker’s repositories and install from them
- Download RPM package and install it manually
- You can install docker from Ubuntu repositories
Install docker Using Repository
Step 1: Check Linux version using below command
Please make sure Linux version fulfill docker prerequisite.
Step 2: We need to set up the repository and install packages to allow apt to use a repository over HTTPS:
apt-get install apt-transport-https ca-certificates
Step 3:We will add Docker’s official GPG key using below command
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add –
Step 4: Verify that the key ID is XXXXXXX:
apt-key fingerprint XXXXXX
Step 5: Enable the testing repository
sudo add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main"/
Install docker Using Ubuntu Repository
apt-get -y install docker-engine
Specific version of Docker in Production System
apt-get -y install docker-engine=
Verify that docker is installed correctly
You need to run below command into root of ubuntu system,
docker run hello-world
If you will get ‘Hello from Docker!’ message that means docker successfully installed.
We have learn docker supported operating system and pre-requisites to install docker on different OS.I have also discussed about difference containerization and virtualization.We have installed docker on Linux/Ubuntu using docker repository and Ubuntu Repo.