当前位置: 首页 > news >正文

ARM架构下安装新版docker及docker-compose

ARM架构下安装新版docker及docker-compose

  1. 安装docker

    下载aarch64下的docker源码安装包

    wgethttps://download.docker.com/linux/static/stable/aarch64/docker-29.6.2.tgz

    准备docker.service文件

    sudovimdocker.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.target

    安装

    # 解压 docker 到当前目录sudotar-xvfdocker-27.2.0.tgz# 将 docker 文件移动到 /usr/bin 目录下sudocp-pdocker/* /usr/bin# 将 docker.service 移到 /etc/systemd/system/ 目录sudocpdocker.service /etc/systemd/system/# 设置 docker.service 文件权限sudochmod+x /etc/systemd/system/docker.service# 重新加载配置文件sudosystemctl daemon-reload# 启动dockersudosystemctl startdocker# 启动如果报错,先查看一下系统日志tail-200f/var/log/messages# 发现报错 docker.service: Failed to locate executable /usr/bin/dockerd: Permission denied# 可能系统启用了 SELinux 关闭 SELinuxsudosetenforce0# 启动dockersudosystemctl startdocker# 检查 Docker 是否能启动sudosystemctl statusdocker# 如果 Docker 能启动,则可能是 SELinux 策略的问题# sudo setenforce 1 # 这里重启拉取镜像报错# 设置 docker 开机自启sudosystemctlenabledocker# 验证安装是否成功dockerversion
  2. 安装docker-compose

    下载aarch64下的docker源码安装包

    wgethttps://github.com/docker/compose/releases/download/v5.3.1/docker-compose-linux-armv6

    配置文件

    sudomvdocker-compose-linux-aarch64 /usr/bin/docker-composesudochmod+x /usr/bin/docker-composedocker-composeversion

http://www.jsqmd.com/news/1249449/

相关文章:

  • 2026内蒙古中考落榜别灰心!电大中专保留学籍,曲线救国圆你大学梦! - 我叫小周
  • 宁波实体黄金回收店|大盘价当场结算 - 大牌深度测评
  • 2026高钙猫咪羊奶粉品牌实测横评:5维度实测,附避坑指南+选型方案
  • 大模型推理加速技术:ATB架构与优化实践
  • Nginx 负载均衡和反向代理
  • 深入解析MCU的IOMM:寄存器映射、引脚复用与错误处理实战
  • 2026 欧米茄海马闲置在家贬值?青岛合扬全城实体网点,评估完毕即刻回款! - 好物测评局
  • 每天节省2.7小时!AI自动发邮件的12种高价值场景(销售跟进、客户回访、内部通知全覆盖)
  • 2026年全国混凝土色差修复新标准:3步实现永久无痕
  • Django毕设选题推荐:基于 Django社区防疫数据监测与信息公示系统设计 面向社区的疫情人员信息登记管理系统【附源码、mysql、文档、调试+代码讲解+全bao等】
  • 2026年武汉东湖光电职业技术学校报考指南 - 湖北找学校
  • 2026年昆仑广州特约售后点位资料归档丨天河城写字楼维保服务中心区位一览 - 昆仑中国售后中心
  • 瑞士进口测表仪精准检测!石家庄合扬机芯状态一目了然 - 日常财经早知道
  • 【Rust自学】5.3. struct的方法(Method)
  • Django毕业设计-基于 Django 的物资仓储与配送管理系统设计与实现 智能物资配送调度管理平台的设计与实现(源码+LW+部署文档+全bao+远程调试+代码讲解等)
  • 2026 年 7 月新发布:内蒙古可靠的古建牌楼工程制造商哪家专业,揭秘:牌楼的千年工艺,如何重塑现代都市面貌? - 行业甄选官
  • 深入解析C2000 eQEP模块:正交编码器硬件解码与高精度运动控制
  • WSL2配置tensorflow GPU环境
  • 为什么有的人偏爱 Mac?
  • GEO优化为什么不能只发软文?广拓时代谈AI搜索内容资产建设
  • 南京高端首饰回收哪家不坑?2026 新手出手品牌首饰防套路安全变现指南 - 全国二奢机构参考
  • 如何在OpenWrt软路由中增加一个新功能
  • 【办公类-54-03】20240828班级点名册模版(双休国定假涂成灰色)2024学年第一学期
  • 3D格式转换之CREO 转 CATIA 标准化转换技术
  • 2026年成都实力强香港留学机构推荐:五家优选深度解析 - 科技焦点
  • 想了解空气预热器等锅炉部件公司?这些不容错过!
  • 滞回运放电路仿真和分析
  • MCP协议:AI工具互联互通的标准解决方案
  • C++:AVL树
  • 工业总线多源异构协议免编程统一转换:基于流编排的边缘清洗架构与合并实战