[Play Docker]How to install docker on the Lemuntu

3 3394
Edited by tony_zhang at Jun 19, 2016 20:17

Docker is an open-source project that automates the deployment of applications inside software containers. Docker uses the resource isolation features of the Linux kernel such as cgroups and kernel namespaces, and a union-capable file system such as aufs and others to allow independent "containers" to run within a single Linux instance, avoiding the overhead of starting and maintaining virtual machines. For more information, please visit the official website at https://www.docker.com/

Update Kernel
The lemuntu v16.04 doesn't support to run docker, because of  the lack of the necessary kernel options. we have fixed it and submitted the patch to github at https://github.com/LeMaker/linux ... 5b02fc6bdc4bffeb667 . If you don't want to re-compile the kernel, and you can consider to download the platform firmware package which support the docker at http://mirror.lemaker.org/lemaker_guitar_bbb_hwpack_docker.tar.xz and refer the wiki tutorial to replace the uImage in the first partiton and /lib/modules in the second partiton.

Attention: The uImage is saved to the misc.img, In order to obtain it, and you have to mount the misc.img to a directory, as follows:
  1. # cd kernel && mdkir tmp
  2. # mount kernel/misc.img kernel/tmp
Copy the Code

3. Install Docker
The Standard Package Repositories of the debian jessies for the armhf don't support to install the docker tool online at present. However, we can use the other methods to install, as follows:
1) compile the docker from the source code at https://github.com/docker/docker
2) install the docker based on the other Package Repositories

In the post, we will choose the method [2] to install the docker, and more steps as follows:
  • add the Package Repository jessie-backport to the /etc/apt/sources.list
  1. # echo "deb http://ftp.de.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
Copy the Code
  • install docker
  1. # apt-get update && apt-get install docker.io
Copy the Code
  • check the version of the docker
  1. # docker -v
  2. Docker version 1.6.2, build 7c8fca2
Copy the Code

4. Using Docker
There are many of docker image for the armhf have been saved to the
docker register server https://hub.docker.com/, and we can use the command below to search the docker images from the server.
  1. # docker search armhf
Copy the Code
as shown in the figure below:

download docker image armv7/armhf-ubuntu
  1. # docker pull armv7/armhf-ubuntu
Copy the Code
as shown in the figure below:

check the system docker images
  1. # docker images
Copy the Code
as shown in the figure below:

Thank you so much for explaining the installation very clear hostsailor. The explanation is the proper guidance for the installing docker on the Lemuntu. I don't think a better explanation is available anywhere. Because each of the steps explained perfectly.

Accidentally i have come across this website and am a little bit confused about the diamonds rings near me details shared here. This post shares the procedure on how to install docker on the Lemuntu. The steps are clearly mentioned here and I am looking here for more updates.

You have to log in before you can reply Login | Sign Up

Points Rules