|
发表于 2022-3-10 14:50:39
只看该作者
5#
1. 已经根据(https://wiki.t-firefly.com/zh_CN ... html#docker-zhi-chi)编译支持docker的boot.img:
2. 成功刷入开发板,并启动进入系统:
3. 按照如下方式安装:
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
echo "deb [arch=arm64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y docker-ce
4. 安装失败,失败log:
firefly@firefly:~$ sudo apt-get install -y docker-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apparmor containerd.io docker-ce-cli docker-ce-rootless-extras git git-man liberror-perl pigz
Suggested packages:
apparmor-profiles-extra apparmor-utils cgroupfs-mount | cgroup-lite gettext-base git-daemon-run
| git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
Recommended packages:
slirp4netns
The following NEW packages will be installed:
apparmor containerd.io docker-ce docker-ce-cli docker-ce-rootless-extras git git-man liberror-perl pigz
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 82.1 MB of archives.
After this operation, 378 MB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/debian buster/main arm64 pigz arm64 2.4-1 [48.0 kB]
Get:2 http://mirrors.aliyun.com/debian buster/main arm64 apparmor arm64 2.13.2-10 [504 kB]
Get:3 https://download.docker.com/linux/debian buster/stable arm64 containerd.io arm64 1.4.13-1 [16.8 MB]
Get:4 http://mirrors.aliyun.com/debian buster/main arm64 liberror-perl all 0.17027-2 [30.9 kB]
Get:5 http://mirrors.aliyun.com/debian buster/main arm64 git-man all 1:2.20.1-2+deb10u3 [1620 kB]
Get:6 https://download.docker.com/linux/debian buster/stable arm64 docker-ce-cli arm64 5:20.10.12~3-0~debian-buster [36.4 MB]
Get:7 http://mirrors.aliyun.com/debian buster/main arm64 git arm64 1:2.20.1-2+deb10u3 [5509 kB]
Get:8 https://download.docker.com/linux/debian buster/stable arm64 docker-ce arm64 5:20.10.12~3-0~debian-buster [13.9 MB]
Get:9 https://download.docker.com/linux/debian buster/stable arm64 docker-ce-rootless-extras arm64 5:20.10.12~3-0~debian-buster [7179 kB]
Fetched 82.1 MB in 19s (4314 kB/s)
Preconfiguring packages ...
Selecting previously unselected package pigz.
(Reading database ... 56783 files and directories currently installed.)
Preparing to unpack .../0-pigz_2.4-1_arm64.deb ...
Unpacking pigz (2.4-1) ...
Selecting previously unselected package apparmor.
Preparing to unpack .../1-apparmor_2.13.2-10_arm64.deb ...
Unpacking apparmor (2.13.2-10) ...
Selecting previously unselected package containerd.io.
Preparing to unpack .../2-containerd.io_1.4.13-1_arm64.deb ...
Unpacking containerd.io (1.4.13-1) ...
Selecting previously unselected package docker-ce-cli.
Preparing to unpack .../3-docker-ce-cli_5%3a20.10.12~3-0~debian-buster_arm64.deb ...
Unpacking docker-ce-cli (5:20.10.12~3-0~debian-buster) ...
Selecting previously unselected package docker-ce.
Preparing to unpack .../4-docker-ce_5%3a20.10.12~3-0~debian-buster_arm64.deb ...
Unpacking docker-ce (5:20.10.12~3-0~debian-buster) ...
Selecting previously unselected package docker-ce-rootless-extras.
Preparing to unpack .../5-docker-ce-rootless-extras_5%3a20.10.12~3-0~debian-buster_arm64.deb ...
Unpacking docker-ce-rootless-extras (5:20.10.12~3-0~debian-buster) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../6-liberror-perl_0.17027-2_all.deb ...
Unpacking liberror-perl (0.17027-2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../7-git-man_1%3a2.20.1-2+deb10u3_all.deb ...
Unpacking git-man (1:2.20.1-2+deb10u3) ...
Selecting previously unselected package git.
Preparing to unpack .../8-git_1%3a2.20.1-2+deb10u3_arm64.deb ...
Unpacking git (1:2.20.1-2+deb10u3) ...
Setting up liberror-perl (0.17027-2) ...
Setting up apparmor (2.13.2-10) ...
insserv: script firstboot.sh: service rockchip already provided!
insserv: warning: script 'rkisp_3A.sh' missing LSB tags
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `rkisp_3A.sh'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `rkisp_3A.sh'
Created symlink /etc/systemd/system/sysinit.target.wants/apparmor.service → /lib/systemd/system/apparmor.service.
Setting up containerd.io (1.4.13-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
Setting up docker-ce-cli (5:20.10.12~3-0~debian-buster) ...
Setting up pigz (2.4-1) ...
Setting up git-man (1:2.20.1-2+deb10u3) ...
Setting up docker-ce-rootless-extras (5:20.10.12~3-0~debian-buster) ...
Setting up docker-ce (5:20.10.12~3-0~debian-buster) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
insserv: script firstboot.sh: service rockchip already provided!
insserv: warning: script 'rkisp_3A.sh' missing LSB tags
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `rkisp_3A.sh'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `rkisp_3A.sh'
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2022-03-10 06:45:47 UTC; 18ms ago
Docs: https://docs.docker.com
Process: 4220 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 4220 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (--configure):
installed docker-ce package post-installation script subprocess returned error exit status 1
Setting up git (1:2.20.1-2+deb10u3) ...
Processing triggers for systemd (241-7~deb10u10firefly1) ...
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1) |
|