发布时间:2026/8/8 18:50:48
docker离线和在线安装 一.docker环境1.在线安装###########centos在线安装############# #1.更新yum源 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo yum clean all yum makecache #2.添加docker国内镜像源 yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo #3.安装docker yum -y install docker-ce docker-ce-cli containerd.io ##########ubuntu在线安装######### apt install -y docker.io2.离线安装#1.自己准备docker离线包本文自带 dockerBin.zip #2.解压移动文件 unzip dockerBin.zip cp ./docker/* /usr/bin/ #启动程序 cp ./docker/docker.service /etc/systemd/system #开机自启文件末尾有第4小节 #3.启动docker、开机自启、查看docker启动状态 systemctl daemon-reload #重新加载systemctl文件 systemctl start docker systemctl enable docker systemctl status docker #4.docker.service文件如下 cat docker.service [Unit] DescriptionDocker Application Container Engine Documentationhttps://docs.docker.com # BindsTocontainerd.service Afternetwork-online.target firewalld.service # containerd.service Wantsnetwork-online.target # Requiresdocker.socket [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 docker EnvironmentFile-/etc/sysconfig/docker EnvironmentFile-/etc/sysconfig/docker-storage EnvironmentFile-/etc/sysconfig/docker-network EnvironmentGOTRACEBACKcrash ExecStart/usr/bin/dockerd $OPTIONS \ $DOCKER_STORAGE_OPTIONS \ $DOCKER_NETWORK_OPTIONS \ $INSECURE_REGISTRY # -H fd:// --containerd/run/containerd/containerd.sock ExecReload/bin/kill -s HUP $MAINPID TimeoutSec0 RestartSec2 Restartalways # Note that StartLimit* options were moved from Service to Unit in systemd 229. # Both the old, and new location are accepted by systemd 229 and up, so using the old location # to make them work for either version of systemd. StartLimitBurst3 # Note that StartLimitInterval was renamed to StartLimitIntervalSec in systemd 230. # Both the old, and new name are accepted by systemd 230 and up, so using the old name to make # this option work for either version of systemd. StartLimitInterval60s # Having non-zero Limit*s causes performance problems due to accounting overhead # in the kernel. We recommend using cgroups to do container-local accounting. LimitNOFILEinfinity LimitNPROCinfinity LimitCOREinfinity # Comment TasksMax if your systemd version does not support it. # Only systemd 226 and above support this option. TasksMaxinfinity # set delegate yes so that systemd does not reset the cgroups of docker containers Delegateyes # kill only the docker process, not all processes in the cgroup KillModeprocess [Install] WantedBymulti-user.target3.docker镜像加速配置#编写/etc/docker/daemon.json配置文件 #1.基础版本完全够用 tee /etc/docker/daemon.json -EOF { registry-mirrors: [https://ej3odski.mirror.aliyuncs.com] } EOF #2.不理解不要配 tee /etc/docker/daemon.json -EOF { log-driver: json-file, log-opts: { max-size: 100m, max-file: 3 }, exec-opts: [native.cgroupdriversystemd], storage-driver: overlay2, storage-opts: [ overlay2.override_kernel_checktrue ], registry-mirrors: [ https://docker.mirrors.ustc.edu.cn, https://hub-mirror.c.163.com ] } EOF #注意配置文件更新后需要重启docker systemctl restart docker

相关新闻

2026/8/8 18:50:48

5分钟掌握微信批量消息发送:解放双手的自动化神器

5分钟掌握微信批量消息发送:解放双手的自动化神器 【免费下载链接】WeChat-mass-msg 微信自动发送信息,微信群发消息,Windows系统微信客户端(PC端 项目地址: https://gitcode.com/gh_mirrors/we/WeChat-mass-msg 还在为给上…

2026/8/8 18:50:48

melonDS开源模拟器终极指南:快速上手任天堂DS游戏模拟

melonDS开源模拟器终极指南:快速上手任天堂DS游戏模拟 【免费下载链接】melonDS DS emulator, sorta 项目地址: https://gitcode.com/gh_mirrors/me/melonDS 想要在电脑上重温经典的任天堂DS游戏吗?melonDS开源模拟器是你的完美选择!这…

2026/8/8 19:40:50

5分钟掌握Midscene:用AI视觉驱动实现跨平台自动化革命

5分钟掌握Midscene:用AI视觉驱动实现跨平台自动化革命 【免费下载链接】midscene AI-powered, vision-driven UI automation for every platform. 项目地址: https://gitcode.com/GitHub_Trending/mid/midscene 你是否曾为每天重复的网页操作而疲惫不堪&…

2026/8/8 19:40:50

3个理由告诉你,为什么极简主义者都爱用Nullboard看板

3个理由告诉你,为什么极简主义者都爱用Nullboard看板 【免费下载链接】nullboard Nullboard is a minimalist kanban board, focused on compactness and readability. 项目地址: https://gitcode.com/GitHub_Trending/nu/nullboard 你是否曾为复杂的项目管理…

2026/8/8 19:35:50

Agent Governance Toolkit文档生成:自动创建AI代理治理文档

Agent Governance Toolkit文档生成:自动创建AI代理治理文档 【免费下载链接】agent-governance-toolkit AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, execution sandboxing, and reliability engineering for autonomous AI agents. …

2026/8/7 19:43:11

如何用免费工具突破游戏窗口限制:SRWE完整使用指南

如何用免费工具突破游戏窗口限制:SRWE完整使用指南 【免费下载链接】SRWE Simple Runtime Window Editor 项目地址: https://gitcode.com/gh_mirrors/sr/SRWE 你是否遇到过这样的困扰?想为心爱的游戏截图,却发现游戏不支持自定义分辨率…

2026/8/8 0:04:22

Java图像处理实战指南

要执行这些 Java AWT 图像处理程序,你需要将它们分别保存为独立的 .java 文件,并使用 javac 编译,然后使用 java 运行。以下是每个程序的核心执行步骤、依赖关系和要点。 通用执行步骤 保存文件:将每个 listing 的代码复制到文本…

2026/8/8 0:04:23

昇腾AI代理实现多号通话自动化

基于昇腾(Ascend)硬件与AtomGit AI社区的开源生态,结合AI Agent技术,可以实现一个模拟“通话重复使用机号复制”功能的安卓手机应用原型。其核心是利用AI Agent进行意图理解、任务编排和自动化操作,模拟或管理多号码的…

2026/8/8 0:04:23

2026年Graph+AI Agents最新创新思路

本次围绕GraphAI Agents这个方向筛选了15篇高质量论文,都是近年来具有较高引用价值或方法创新的研究工作,其中部分来自IJCAI、AAAI、ICRA。 对于论文er来说,这些论文方法结构清晰、可复现性较强,在多个任务上都有可延展的空间。如…

2026/8/7 9:44:18

实测才敢推 AI论文网站 2026最新测评与推荐

2026年真正好用的AI论文网站,核心看生成的论文质量、低AI味、格式正确、学术适配四大指标。综合实测,千笔AI、ThouPen、豆包、DeepSeek、Grammarly 是当前最值得推荐的梯队,覆盖从免费到付费、从中文到英文、从文科到理工的全场景需求。一、综…

2026/8/7 19:03:32

2026必备!AI论文网站测评:最新推荐与深度对比

2026年真正好用的AI论文网站,核心看生成的论文质量、低AI味、格式正确、学术适配四大指标。综合实测,千笔AI、ThouPen、豆包、DeepSeek、Grammarly 是当前最值得推荐的梯队,覆盖从免费到付费、从中文到英文、从文科到理工的全场景需求。 一、…

2026/8/8 2:17:42

摆脱论文困扰!盘点2026年全网爆红的的AI论文写作工具

一天写完毕业论文在2026年已不再是天方夜谭。2026年最炸裂、实测能大幅提速的AI论文写作工具,覆盖选题构思、文献整理、内容生成、格式排版等核心场景,真正帮你高效搞定论文难题。 一、全流程王者:一站式搞定论文全链路(一天定稿首…