range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn
72
www.xunlong.tv
| sudo apt-key add - (This is a command)
4) Add the corresponding docker source in the system source of Ubuntu
root@orangepir1plus:~# add-apt-repository "deb [arch=arm64]
https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
(This is a command)
5) Install the latest version of docker-ce
root@orangepir1plus:~# apt update
root@orangepir1plus:~# apt install docker-ce
6) Verify the status of docker
root@orangepir1plus:~# 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@orangepir1plus:~# 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
Hello from Docker!
This message shows that your installation appears to be working correctly.