Difference between revisions of "IoTGateway/BSP/Linux/iMX6/InstallDocker"

From ESS-WIKI
Jump to: navigation, search
 
(14 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
== <font color="#0070c0">Install Docker SOP on Target</font> ==
 
== <font color="#0070c0">Install Docker SOP on Target</font> ==
  
Step1 Follow - [https://stackoverflow.com/questions/38728693/cannot-install-docker-on-debian-jessie https://stackoverflow.com/questions/38728693/cannot-install-docker-on-debian-jessie]
+
Step1
  
Step2 Download docker engine 17.05 docker-engine_17.05.0~ce-0~ubuntu-trusty_armhf.deb
+
System boot up on Target
  
Step3 wget [https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_17.05.0~ce-0~debian-jessie_armhf.deb https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_17.05.0~ce-0~debian-jessie_armhf.deb]
+
Step2
  
Step4 apt-get update
 
  
Step5 dpkg -i docker-engine_17.05.0~ce-0~debian-jessie_armhf.deb Step5 dpkg -i docker-engine_17.05.0~ce-0~debian-jessie_armhf.deb
+
<syntaxhighlight lang="bash">apt-get update</syntaxhighlight>
 +
Step3
  
Step6 Check docker can work - docker run -t -i ubuntu /bin/bash Reference: [[https://stackoverflow.com/questions/28923743/dockers-docker0-device-dies-repeatedly-inet-addr-disappears https://stackoverflow.com/questions/28923743/dockers-docker0-device-dies-repeatedly-inet-addr-disappears]
+
Install at least for 1.7.X versions and above using the deb repository
  
[https://stackoverflow.com/questions/28923743/dockers-docker0-device-dies-repeatedly-inet-addr-disappears https://stackoverflow.com/questions/28923743/dockers-docker0-device-dies-repeatedly-inet-addr-disappears]]
+
Debien 8
 +
<syntaxhighlight lang="bash">wget https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_17.05.0~ce-0~debian-jessie_armhf.deb</syntaxhighlight> Ubuntu 14.04<syntaxhighlight lang="bash">wget https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_17.05.0~ce-0~ubuntu-trusty_armhf.deb</syntaxhighlight> Step4 Install docker Debien8(Jessie)<syntaxhighlight lang="bash">dpkg -i docker-engine_17.05.0~ce-0~debian-jessie_armhf.deb</syntaxhighlight>Ubuntu14.04(Trusty)<syntaxhighlight lang="bash">dpkg -i docker-engine_17.05.0~ce-0~ubuntu-trusty_armhf.deb</syntaxhighlight> Step5 Check docker can work (1) Check docker verison
 +
:[[File:Docker version.jpg|400px|Docker_version.jpg]]
 +
 
 +
(2) Docker Run
 +
 
 +
 
 +
<syntaxhighlight lang="bash">docker run -t -i ubuntu /bin/bash</syntaxhighlight> Q/A (1)
 +
*If network issue, please check "/etc/resolv.conf".
 +
*&nbsp;[Solve] Add nameserver 8.8.8.8 in &nbsp;/etc/resolvconf/resolv.conf.d/base
 +
 
 +
(2)
 +
 
 +
*Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
 +
*Check&nbsp;cgroup hierarchy: nonexistent??
 +
*[Solve] apt-get install libsystemd-journal0

Latest revision as of 02:59, 19 October 2017

Install Docker

Install Docker on Debian iMX6 RISC ARM

Introduction

This document describes how to install Docker on Debian iMX6 RISC ARM.

Install Docker SOP on Target

Step1

System boot up on Target

Step2


apt-get update

Step3

Install at least for 1.7.X versions and above using the deb repository

Debien 8

wget https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_17.05.0~ce-0~debian-jessie_armhf.deb
Ubuntu 14.04
wget https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_17.05.0~ce-0~ubuntu-trusty_armhf.deb
Step4 Install docker Debien8(Jessie)
dpkg -i docker-engine_17.05.0~ce-0~debian-jessie_armhf.deb
Ubuntu14.04(Trusty)
dpkg -i docker-engine_17.05.0~ce-0~ubuntu-trusty_armhf.deb
Step5 Check docker can work (1) Check docker verison
Docker_version.jpg

(2) Docker Run


docker run -t -i ubuntu /bin/bash
Q/A (1)
  • If network issue, please check "/etc/resolv.conf".
  •  [Solve] Add nameserver 8.8.8.8 in  /etc/resolvconf/resolv.conf.d/base

(2)

  • Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  • Check cgroup hierarchy: nonexistent??
  • [Solve] apt-get install libsystemd-journal0