ARM-docker compose离线安装

ARM-docker compose离线安装
ARM架构docker compose离线安装1.下载github:https://github.com/docker/compose/releasesCSDN:https://download.csdn.net/download/qq_23845083/87800369下载对应架构考虑docker和docker compose的版本兼容性可以选择相近的发布时间2.准备 docker.service系统配置文件复制以下内容保存为 docker.service 文件一定是要全部包括最上面的 docker.service docker.service[Unit]DescriptionDocker Application Container EngineDocumentationhttps://docs.docker.comAfternetwork-online.target firewalld.serviceWantsnetwork-online.target[Service]Typenotify# 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.LimitNOFILEinfinityLimitNPROCinfinityLimitCOREinfinity# Uncomment TasksMax if your systemd version supports it.# Only systemd 226 and above support this version.#TasksMaxinfinityTimeoutStartSec0# set delegate yes so that systemd does not reset the cgroups of docker containersDelegateyes# kill only the docker process, not all processes in the cgroupKillModeprocess# restart the docker process if it exits prematurelyRestarton-failureStartLimitBurst3StartLimitInterval60s[Install]WantedBymulti-user.target3.将 docker-compose 文件复制到 /usr/local/bin/ 目录下并重命名为 docker-composecpdocker-compose-linux-aarch64 /usr/local/bin/docker-compose4.设置 docker-compose 文件权限chmodx /usr/local/bin/docker-compose5.将 docker.service 移到 /etc/systemd/system/ 目录cpdocker.service /etc/systemd/system/6.设置 docker.service 文件权限chmodx /etc/systemd/system/docker.service7.重新加载配置文件systemctl daemon-reload8.启动dockersystemctl startdocker9.设置 docker 开机自启systemctlenabledocker.service10.查看是否安装成功docker-compose-vinference:https://blog.csdn.net/qq_23845083/article/details/130768859