[SOLVED] How to install Docker in Ubuntu?
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY deepak.r
3 years ago
Technical-Solution
0 comments comment

Docker is an open source platform for system administrators and developers to build, ship and to run distributed applications, whether its on the cloud, data center VMs, or on the laptops. Docker helps to automate the deployment of Linux applications inside software containers.

This write up helps you to learn, installation, upgrade and un-installation of Docker engine.

Docker is supported on the following Ubuntu operating systems:

  • Ubuntu Precise 12.04 (LTS)
  • Ubuntu Trusty 14.04 (LTS)
  • Ubuntu Wily 15.10
  • Ubuntu Xenial 16.04 (LTS)
Note: Ubuntu Utopic 15.04 and Ubuntu Utopic 14.10 exists in Docker’s APT repository, but they are no longer officially supported.

Prerequisites

Regardless of the Ubuntu version, Docker requires a 64-bit installation. Additionally, Ubuntu kernel must be minimum at 3.10. Kernels older than 3.10 will lack some features to run the docker containers. That is, A newer maintained version or the latest minor version 3.10 version are acceptable. Older versions also have some known bugs, that can cause data loss and frequently panic in some cases.

You can check your kernel version by typing the following command in the Ubuntu terminal.

$ uname -r

You will be displayed a kernal version as below.

3.19.0-25-generic

Install Docker

After confirming the Operating system requirements, you can update your package manager by running the following command in Ubuntu terminal.

$ sudo apt-get update

As the Ubuntu package manager has been updated, You can now install docker-engine by running the following command in your Ubuntu terminal.

$ sudo apt-get install docker-engine

After the installation you can start the Docker service, by running the following command in your Ubuntu terminal.

$ sudo service docker start

Now, you can verify docker is installed correctly.

$ sudo docker run hello-world

The above command downloads a test docker image and runs it in a container, which prints an informational message.

Upgrade Docker

To install the latest version of Docker, run the following command in your Ubuntu terminal.

$ sudo apt-get upgrade docker-engine

Uninstallation

To uninstall a docker package run the following command in your Ubuntu terminal.

$ sudo apt-get purge docker-engine

As the dependencies were no longer needed

$ sudo apt-get autoremove --purge docker-engine

As the above commands, will not remove the containers, volumes, images or configuration files in your host, you can run the following command to delete the containers, volumes, images or configuration files, by running the following command in your terminal. You must remove the user configuration files manually.

$ rm -rf /var/lib/docker

Hope this helps!


RELATED ARTICLE

/themes/custom/zyxpro_light/images/placeholder.png
close

on 04th April 2007 / by webmaster
Linux is the epitome of the FLOSS model. Technical Solution Linux installation Leave a reply Your email address will not be published. Required fields are marked * Dewey J. Corl (not verified) access_time 28 Nov 2020 - 01:29 Linux is not ready for the general public! (I am a Ubuntu user). For proof, 1. try to simply print labels on a Dymo label printer. It takes a LOT of work to get to the ease of label printing already available in Windows and Mac. 2. try syncing a modern Palm based PDA. Yes, jpilot and others will sync the main data, but pictures and midi files do not get transferred without a lot of extra setup. These are examples of applications that are not ready for the general public. Since an operating system only supports applications, Linux is not ready to be a common desktop for the general public. While we are waiting for the applications to catch up, keep up the good work!! Anoop John (not verified) access_time 28 Nov 2020 - 01:29 Dewey Yes you may be right. But these are not applications that a common man would use. A common man would use one of these applications - Internet browser, Chat Client, Email Client, Document Writer, Presentation Creator, Spreadsheet Editor, Movie Viewer, Music Player, CD/DVD Writer. Both examples you cited are more specific applications that only a small percentage of the whole population uses. It will take time before those hardware vendors identify the need from their perspective to address the Linux community. Krishnadas (not verified) access_time 28 Nov 2020 - 01:29 Dear Mr Anoop, Thank you very much for the free installation of LINUX done in my PC. I am getting immersed in the LINUX and seeing the versatility. To my surprise, I am able to read one of my old backup CD(wherein lot of my valuable file exist) done in DIRECT CD wizard (a custom cd writing software of Easy Cd creator in WIN98) which could not be read in XP. Installation of old version of easycd creator/direct cd program was not possible in XP. I thought that possible i lost all data. Very pleasant start! Srikanth N. S. (not verified) access_time 28 Nov 2020 - 01:29 Hi Anoop, My friend is thrilled with Ubuntu. One of his grouses with windows was that after OS installation, everything else is to be installed separately which is a real headache. WHereas if u install Linux, everything is installed as a package and he is thrilled to bits! Let linux installation spread in Trivandrum and your service in this direction is highly appreciated. Kepp up the good work Regards. PDA Freak (not verified) access_time 28 Nov 2020 - 01:29 Is it possible to install linux on a packardbell notebook ? Pagination Current page 1 Page 2 Next page Next › Last page Last » Add new comment
Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.