赞
踩
目录
我使用的是 香橙派3b Ubuntu 系统
官方的系统应该是没有docker包的
我这里用的是离线方式安装:
sudo apt-get remove docker docker-engine docker.io containerd runc
你可以选择自己在电脑下载,然后ftp传到你想要的目录:
root目录也可以
https://download.docker.com/linux/static/stable/aarch64/docker-24.0.6.tgz
wget https://download.docker.com/linux/static/stable/aarch64/docker-24.0.6.tgz
解压docker压缩包:
先cd到你的压缩包目录
tar -zxvf docker-19.03.9.tgz
sudo cp -p docker/* /usr/bin/
这里会在:/usr/lib/systemd/system/下创建一个docker.service文件
sudo nano /usr/lib/systemd/system/docker.service
- docker.service
-
- [Unit]
- Description=Docker Application Container Engine
- Documentation=https://docs.docker.com
- After=network-online.target firewalld.service
- Wants=network-online.target
-
- [Service]
- Type=notify
- # the default is not to use systemd for cgroups because the delegate issues still
- # exists and systemd currently does not support the cgroup feature set required
- # for containers run by docker
- ExecStart=/usr/bin/dockerd
- ExecReload=/bin/kill -s HUP $MAINPID
- # Having non-zero Limit*s causes performance problems due to accounting overhead
- # in the kernel. We recommend using cgroups to do container-local accounting.
- LimitNOFILE=infinity
- LimitNPROC=infinity
- LimitCORE=infinity
- # Uncomment TasksMax if your systemd version supports it.
- # Only systemd 226 and above support this version.
- #TasksMax=infinity
- TimeoutStartSec=0
- # set delegate yes so that systemd does not reset the cgroups of docker containers
- Delegate=yes
- # kill only the docker process, not all processes in the cgroup
- KillMode=process
- # restart the docker process if it exits prematurely
- Restart=on-failure
- StartLimitBurst=3
- StartLimitInterval=60s
-
- [Install]
- WantedBy=multi-user.target
-

chmod +x /etc/systemd/system/docker.service
sudo systemctl daemon-reload
sudo systemctl start docker
sudo systemctl enable docker
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。