Install Docker
Targeting Linaro Release 17.09 (283) till Debian Baster is released.
Using
- Windows 10 Pro x64
Prerequisites: Setup GUI Development Environment (eMMC Boot)
Connect to DB410c with Putty with [User Name]@[IP address]
Switch to sudo mode
sudo su
Add temporary environment variable to simplify installation
Distro=$(lsb_release -is)
Codename=$(lsb_release -cs)
Channel=edge
# use stable if you must
Arch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"
apt update
apt upgrade
Add GPG Key
curl -fsSL https://download.docker.com/linux/${Distro,,}/gpg | sudo apt-key add -
Verify
apt-key fingerprint 0EBFCD88
Expected output
pub rsa4096 2017-02-22 [SCEA]
9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid [ unknown] Docker Release (CE deb) docker@docker.com
sub rsa4096 2017-02-22 [S]
Add Docker source list
Source='deb [arch='$Arch'] https://download.docker.com/linux/debian '$Codename' '$Channel
Content='echo "'$Source'" > /etc/apt/sources.list.d/docker.list'
sudo sh -c "${Content}"
Source='#deb-src [arch='$Arch'] https://download.docker.com/linux/debian '$Codename' '$Channel
Content='echo "'$Source'" >> /etc/apt/sources.list.d/docker.list'
sudo sh -c "${Content}"
apt-get update
Test if Docker coming from the Docker repo
apt-cache madison docker-ce
Expected output
docker-ce | 18.02.0~ce-0~debian | https://download.docker.com/linux/debian stretch/edge arm64 Packages
docker-ce | 18.01.0~ce-0~debian | https://download.docker.com/linux/debian stretch/edge arm64 Packages
docker-ce | 17.12.1~ce-0~debian | https://download.docker.com/linux/debian stretch/edge arm64 Packages
docker-ce | 17.12.0~ce-0~debian | https://download.docker.com/linux/debian stretch/edge arm64 Packages
docker-ce | 17.06.1~ce-0~debian | http://obs.linaro.org/linaro-overlay-stretch/Debian_9.0 ./ Packages
docker-ce | 17.06.1~ce-0~debian | http://obs.linaro.org/linaro-overlay-stretch/Debian_9.0 ./ Sources
Add Docker package
apt-get install docker-ce -y
Switch sudo mode off
exit
Add the docker group if it doesn’t already exist:
sudo groupadd docker
Add the connected user “$USER” to the docker group
sudo usermod -aG docker $USER
sudo gpasswd -a $USER docker
Reboot
sudo shutdown -r now
Test Docker
docker version
Expected Output
Client:
Version: 18.02.0-ce
API version: 1.36
Go version: go1.9.3
Git commit: fc4de44
Built: Wed Feb 7 21:17:29 2018
OS/Arch: linux/arm64
Experimental: false
Orchestrator: swarmServer:
Engine:
Version: 18.02.0-ce
API version: 1.36 (minimum version 1.12)
Go version: go1.9.3
Git commit: fc4de44
Built: Wed Feb 7 21:15:39 2018
OS/Arch: linux/arm64
Experimental: false