参考 RedHat 6.8 离线安装Docker (rpm包安装) - 神奇二进制 - 博客园 (cnblogs.com)
可参考,但本次安装未参考 CentOS6 完全离线安装Docker - 简书 (jianshu.com)
走了一遍,大雾 (1条消息) 离线安装Docker_洒家肉山大魔王的博客-优快云博客
在内网安装docker,一开始走了很多弯路,比如下载docker安装包,直接安装
1、替换linux镜像
^C[root@rocketmq-nameserver2 ~]# vi /etc/yum.repos.d/CentOS-Base.repo You have mail in /var/spool/mail/root [root@rocketmq-nameserver2 ~]# yum clean all 已加载插件:fastestmirror, refresh-packagekit, security Cleaning repos: base docker-ce-stable epel extras updates 清理一切 Cleaning up list of fastest mirrors [root@rocketmq-nameserver2 ~]# yum makecache 已加载插件:fastestmirror, refresh-packagekit, security Determining fastest mirrors epel/metalink | 4.7 kB 00:00 * epel: ftp.iij.ad.jp base | 3.7 kB 00:00 base/group_gz | 242 kB 00:00 base/filelists_db | 6.4 MB 00:01 base/primary_db | 4.7 MB 00:00 base/other_db | 2.8 MB 00:00 https://download.docker.com/linux/centos/6/x86_64/stable/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 尝试其他镜像。 To address this issue please refer to the below knowledge base article https://access.redhat.com/articles/1320623 If above article doesn't help to resolve this issue please open a ticket with Red Hat Support. 错误:Cannot retrieve repository metadata (repomd.xml) for repository: docker-ce-stable. Please verify its path and try again [root@rocketmq-nameserver2 ~]# yum repolist 已加载插件:fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile epel/metalink | 4.7 kB 00:00 * epel: ftp.iij.ad.jp https://download.docker.com/linux/centos/6/x86_64/stable/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 尝试其他镜像。 To address this issue please refer to the below knowledge base article https://access.redhat.com/articles/1320623 If above article doesn't help to resolve this issue please open a ticket with Red Hat Support. https://download.docker.com/linux/centos/6/x86_64/stable/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 尝试其他镜像。 epel | 4.7 kB 00:00 epel/primary_db | 6.1 MB 00:01 extras | 3.4 kB 00:00 extras/pr

该文详细记录了在RedHat6.8系统中进行Docker的离线安装过程,包括遇到的错误,如404错误、yum无法找到仓库、systemd相关问题以及cgroup的挂载错误。作者通过替换Linux镜像源,清除yum缓存,手动下载rpm包并强制安装,修改/etc/fstab,安装依赖组件,以及处理cgconfig服务的启动问题,最终成功安装Docker。
最低0.47元/天 解锁文章
582

被折叠的 条评论
为什么被折叠?



