ARM架构docker compose离线安装
1.下载
github:
https://github.com/docker/compose/releases
CSDN:
https://download.csdn.net/download/qq_23845083/87800369
下载对应架构(考虑docker和docker compose的版本兼容性,可以选择相近的发布时间):
2.准备 docker.service系统配置文件
(复制以下内容保存为 docker.service 文件,一定是要全部,包括最上面的 docker.service !!!)
docker.service[Unit]Description=Docker Application Container EngineDocumentation=https://docs.docker.comAfter=network-online.target firewalld.serviceWants=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 dockerExecStart=/usr/bin/dockerdExecReload=/bin/kill-sHUP$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=infinityLimitNPROC=infinityLimitCORE=infinity# Uncomment TasksMax if your systemd version supports it.# Only systemd 226 and above support this version.#TasksMax=infinityTimeoutStartSec=0# set delegate yes so that systemd does not reset the cgroups of docker containersDelegate=yes# kill only the docker process, not all processes in the cgroupKillMode=process# restart the docker process if it exits prematurelyRestart=on-failureStartLimitBurst=3StartLimitInterval=60s[Install]WantedBy=multi-user.target3.将 docker-compose 文件复制到 /usr/local/bin/ 目录下,并重命名为 docker-compose
cpdocker-compose-linux-aarch64 /usr/local/bin/docker-compose4.设置 docker-compose 文件权限
chmod+x /usr/local/bin/docker-compose5.将 docker.service 移到 /etc/systemd/system/ 目录
cpdocker.service /etc/systemd/system/6.设置 docker.service 文件权限
chmod+x /etc/systemd/system/docker.service7.重新加载配置文件
systemctl daemon-reload8.启动docker
systemctl startdocker9.设置 docker 开机自启
systemctlenabledocker.service10.查看是否安装成功
docker-compose-vinference:
https://blog.csdn.net/qq_23845083/article/details/130768859