August 1

Installation Docker on Lubuntu 18.04

Reading Time: 2 minutes

I like to use Docker containers to make my test. I observed that the software companies frequently propose a container version of their application to easily test the features or rapidly create a proof of concept to validate a design. Thanks to its portability, the container is becoming the cornerstone of the modern IT platform especially for the application teams; the container combined with an automation of the development pipeline will give to the company a strategic advantage to stay “Time to Market”.

I will install a docker version >1.12 because I want to use the GPU cores of the graphic card’s host fpr the acceleration of the calculation for the deep learning network.

Three steps were defined for the installation of Docker on my laptop:

  • Validation that the docker version available on the repository of Lubuntu 18.04 > 1.12 (Requirements of NVIDIA)
  • Installation of Docker thanks to the Lubuntu repository
  • Execution of Docker container which guarantee the success of the installation

Step 1: Validation of the version of Docker

apt-cache showpkg docker.io

The repository indicates that the docker version is 1.13

Step 2: Installation of Docker

 apt-get install docker.io 

Step 3: Execution of a docker container to validate the installation

An easy and simple method to validate the correct installation of the docker daemon is to run the container hello-world.

This test validates that :

  • The docker client is able to contact the docker daemon.
  • The docker daemon is able to pull the image “hello-world” from the docker hub to the local registry
  • The docker daemon creates a new container from the image which runs an executable that produces the output “Hello-World”
  • The docker daemon streams the output to the docker client which sends
docker run hello-world
Unable to find image ‘hello-world:latest’ locally
latest: Pulling from library/hello-world
9db2ca6ccae0: Pull complete
Digest: sha256:4b8ff392a12ed9ea17784bd3c9a8b1fa3299cac44aca35a85c90c5e3c7afacdc
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.

Conclusion:

Now, I have the control of the speed of my laptop’s fan based on the real temperature of the 10 zones. It’s of course possible to better tweak the configuration file by for example determining the thermal zones of the processor and activate the fan based on this information. Feel free to give comments or ask questions and I will try to answer you.

If you find this post valuable, Rate it ! This helps me to improve it. For comments, you need to register with your LinkedIn account.

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4.00 out of 5)
Loading...

Tags: ,
Copyright 2018. All rights reserved.

Posted August 1, 2018 by DisruptIT in category "Containers

Leave a Reply

Your email address will not be published. Required fields are marked *