install docker ubuntu
0

install docker ubuntu

Docker is now much more popular among designers as a platform to automate implementation of applications inside computer software containers within cloud servers. It is extremely simple for designers to deploy their applications on a Docker container, save the container image, then, by hand or immediately, deploy the application form image in other cloud that is docker-enabled without having to worry about the underlying operating system or environment settings.

It is possible to install Docker on a virtual machine virtualization technology that is running. Within guide, we shall provide you with step-by-step instructions on how to install Docker 1.10.2 on a Ubuntu 14.04.3 LTS (64-bit) virtual machine. The example below was done on a Plan XS (1 GB) cloud server machine that is(virtual hosted in SimplerCloud making use of root account, and so the “sudo” demand had been omitted of all regarding the actions. If you use a user that is non-root sudo access, please append “sudo” in front of each command (e.g. “sudo apt-get update” instead of “apt-get update“).

Prerequisites for Installing Docker on Ubuntu

These are the pre-requisites for installing Docker on an Ubuntu server:

  1. A virtual machine or physical server running 64-bit installation of Ubuntu. Note that 32-bit installation of Ubuntu is not supported. Below are the Ubuntu versions officially supported by Docker:

    In this guide, we will be using Trusty that is ubuntu(.04.3 LTS (64-bit), that will be the most recent LTS (long haul help) form of Ubuntu during the right time of writing this article.

  2. Minimum kernel version of Ubuntu is 3.10 or higher. To check your kernel, run “uname -r” from the virtual machine’s SSH terminal.001 - Kernel version

    Based on the above, we can see that the kernel version is **************************************************************************************************************************************************************************************************) that is 3.( which fulfills the necessity. In the event that kernel variation is gloomier than 3.10, update the kernel first making use of below commands and restart the host the modifications to simply take impact:

    002 - apt-get dist-upgrade

    apt-get update
 apt-get–y that is dist-upgrade*******************) 
  3. An SSH client such as Putty, and basic knowledge on how to use the SSH client to access your virtual machine.
  4. Basic knowledge on some Unix commands to access your virtual machine via SSH.

Installing Docker

Step 1 – If you haven’t done so, please update your Ubuntu OS and install the latest patches by running below commands:

apt-get update
 apt-get dist-upgrade -y

Reboot your server after the update for the changes to take effect.

Step 2 – To ensure that aufs storage driver is supported by Docker, install the linux-image-extra kernel package by typing below command and reboot your server once completed :

apt-get install linux-image-extra-$-r that is(uname

On the test digital device we're making use of, the linux-image-extra package is set up automatically (see screenshot below).

003 - install linux-extra-image package

Step 3 – Set your Ubuntu’s APT sources to do business with https technique and CA certificates are set up by operating below demand:

apt-get install apt-transport-https ca-certificates

Note that usually both packages happen to be set up automatically in several ubuntu machines that are virtual. Below example shows that the packages are already installed:

004 - install https support for apt

Step 4 – Add the Docker repository’s GPG keys for verification:

apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

005 - add apt key

Step 5 – Add the Docker repository into your Ubuntu’s APT sources by running below command:

echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list

006 - add apt repository

Step 6 – Run apt-get update to update your package index:

apt-get update -y

007 - apt-get update

Step 7 – Install the Docker engine by running below command:

apt-get install docker-engine

008 - install docker-engine

Type “Y” to continue, and wait until the Docker Engine installation is completed.

009 - install docker-engine 2

Step 8 – The Docker daemon should be started automatically once the installation is completed. You can verify by running below commands:

service docker status
 
 // or..
 
 ps awx | grep docker

010 - check docker status

Step 9 – If the Docker daemon is not started, you can start it using below command:

service docker start

011 - start docker service

Step 10 – To verify that your Docker daemon is running properly, run below docker command:

docker run hello-world

The command shall you will need to run the hello-world standard image, and also to pull it from Docker collection if it willn’t occur in your area.

012 - run hello-world

Congratulations! You've got set up Docker in your digital device.

The alternative should produce a Docker image and run a fresh Docker container (tutorial just around the corner).

Disclaimer : this will be a guest post article by Indra Pramana from SimplerCloud.com, a cloud servers provider from Singapore with solutions built from ground around offer undoubtedly real-time, scalable and simply managed cloud infrastructure for start-ups, designers and company throughout Asia.

About The Author

Nginx basics: Installation and Configuration Troubleshooting

Previous article

Nokia’s nostalgia-bait feature phone that is latest is the 8110 “Banana Phone”

Next article

You may also like

Comments

Leave a Reply

More in advance