docker - 在离线 Centos 服务器上安装 docker
问题描述
当我想将 docker 安装到离线 Centos 7 服务器时,我遇到了一些问题。我已经在我的本地虚拟机(内核 3.10 的 Centos 7)中执行了以下指令来打包 docker install 依赖项:
yumdownloader --resolve docker
tar cvzf ~/docker.tar.gz *
在我运行下一个命令将 docker 安装到我的目标服务器 centos 7 kernel 3.10 之后
tar xvf docker.tar.gz -C ~/docker
rpm -ivh --replacefiles --replacepkgs *.rpm
但我很困惑如何解决下一个版本问题
error: Failed dependencies:
audit-libs(x86-64) = 2.8.5-4.el7 is needed by audit-libs-python-2.8.5-4.el7.x86_64
policycoreutils >= 2.5-11 is needed by container-selinux-2:2.119.2-1.911c772.el7_8.noarch
selinux-policy >= 3.13.1-216.el7 is needed by container-selinux-2:2.119.2-1.911c772.el7_8.noarch
selinux-policy-base >= 3.13.1-216.el7 is needed by container-selinux-2:2.119.2-1.911c772.el7_8.noarch
selinux-policy-targeted >= 3.13.1-216.el7 is needed by container-selinux-2:2.119.2-1.911c772.el7_8.noarch
libdevmapper.so.1.02(DM_1_02_97)(64bit) is needed by docker-2:1.13.1-203.git0be3e21.el7.centos.x86_64
libsystemd.so.0()(64bit) is needed by docker-2:1.13.1-203.git0be3e21.el7.centos.x86_64
libsystemd.so.0(LIBSYSTEMD_209)(64bit) is needed by docker-2:1.13.1-203.git0be3e21.el7.centos.x86_64
device-mapper-libs >= 7:1.02.97 is needed by docker-common-2:1.13.1-203.git0be3e21.el7.centos.x86_64
libsemanage = 2.5-14.el7 is needed by libsemanage-python-2.5-14.el7.x86_64
libsemanage.so.1(LIBSEMANAGE_1.1)(64bit) is needed by libsemanage-python-2.5-14.el7.x86_64
libsepol.so.1(LIBSEPOL_1.0)(64bit) is needed by policycoreutils-python-2.5-34.el7.x86_64
policycoreutils = 2.5-34.el7 is needed by policycoreutils-python-2.5-34.el7.x86_64
libselinux >= 2.5-14.1 is needed by setools-libs-3.3.8-4.el7.x86_64
libsepol >= 2.5-10 is needed by setools-libs-3.3.8-4.el7.x86_64
解决方案
推荐阅读
- amazon-web-services - 带有 ECS 的 AWS API 网关
- flutter - 如果流未在持续时间内完成,Dart Streams 是否可以发出值?
- javascript - 错误:“barWithErrorBars”不是图表类型。Vue - chartjs-chart-error-bars
- php - WordPress in_array() 期望参数 2 是数组,给定字符串
- python - 如何将嵌套的 for 循环编写为一个内衬?
- javascript - Firebase 功能上的“错误:在建立安全 TLS 连接之前断开客户端网络套接字”
- stata - 根据最近的 I/观察生成一个变量
- android - Android Emulator 在 M1 mac/Apple Silicon 上卡住了加载屏幕
- python - Zapier 有没有办法将 python 输出转换为单独的行?
- python - 检查列表是否为空的最快方法是什么,在什么情况下一种方法优于另一种方法?