EasyManua.ls Logo

Orange Pi Zero2 - How to Install Docker

Orange Pi Zero2
88 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
53
3.22. How to install Docker
1) Uninstall the old version of docker that may exist first
root@orangepi:~# apt remove docker docker-engine docker-ce docker.io
2) Then install the following packages
root@orangepi:~# apt update
root@orangepi:~# apt install -y apt-transport-https ca-certificates curl \
software-properties-common
3) Add the key of Alibaba Cloud docker
root@orangepi:~# curl -fsSL http://mirrors.aliyun.com/docker-
ce/linux/ubuntu/gpg \
| sudo apt-key add -
4) Add the corresponding docker source in the OS source of ubuntu
root@orangepi:~# add-apt-repository "deb [arch=arm64] \
https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
5) nstall the latest version of docker-ce
Iroot@orangepi:~# apt update
root@orangepi:~# apt install docker-ce
6) Verify the status of docker
root@orangepi:~# systemctl status docker
docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset:
enabled)
Active: active (running) since Mon 2020-08-24 10:29:22 UTC; 26min ago
Docs: https://docs.docker.com
Main PID: 3145 (dockerd)
Tasks: 15
CGroup: /system.slice/docker.service
└─3145 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
7) Test docker
root@orangepi:~# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
256ab8fe8778: Pull complete
Digest:
sha256:7f0a9f93b4aa3022c3a4c147a449ef11e0941a1fd0bf4a8e6c9408b2600777c5
Status: Downloaded newer image for hello-world:latest

Table of Contents

Related product manuals