//这两天学习docker,安装docker时报错信息如下,再网上没有找到结果,后经过多次尝试,问题出在 //yum 原上。我的centos是6.5而我用了centos 7 的yum原。 [root@centos50g docker-training]# yum install docker-engine Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.btte.net * elrepo: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.btte.net * updates: mirrors.zju.edu.cn Resolving Dependencies --> Running transaction check ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed --> Processing Dependency: docker-engine-selinux >= 1.12.3-1.el7.centos for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libcgroup for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: xz for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Running transaction check ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch --> Processing Dependency: policycoreutils-python for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch ---> Package libcgroup.x86_64 0:0.40.rc1-18.el6_8 will be installed ---> Package xz.x86_64 0:4.999.9-0.5.beta.20091007git.el6 will be installed --> Running transaction check ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch ---> Package policycoreutils-python.x86_64 0:2.0.83-30.1.el6_8 will be installed --> Processing Dependency: libsemanage-python >= 2.0.43-4 for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64 --> Processing Dependency: audit-libs-python >= 1.4.2-1 for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64 --> Processing Dependency: setools-libs-python for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64 --> Processing Dependency: libselinux-python for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64 --> Running transaction check ---> Package audit-libs-python.x86_64 0:2.4.5-3.el6 will be installed ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch ---> Package libselinux-python.x86_64 0:2.0.94-7.el6 will be installed ---> Package libsemanage-python.x86_64 0:2.0.43-5.1.el6 will be installed ---> Package setools-libs-python.x86_64 0:3.3.7-4.el6 will be installed --> Processing Dependency: setools-libs = 3.3.7-4.el6 for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libsefs.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libseaudit.so.4(VERS_4.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libseaudit.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libqpol.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libpoldiff.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libpoldiff.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libapol.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libsefs.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libseaudit.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libqpol.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libpoldiff.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Processing Dependency: libapol.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64 --> Running transaction check ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64 ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch ---> Package setools-libs.x86_64 0:3.3.7-4.el6 will be installed --> Finished Dependency Resolution Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo) Requires: selinux-policy >= 3.13.1-23 Installed: selinux-policy-3.7.19-292.el6_8.2.noarch (@updates) selinux-policy = 3.7.19-292.el6_8.2 Available: selinux-policy-3.7.19-292.el6.noarch (base) selinux-policy = 3.7.19-292.el6 Error: Package: docker-engine-selinux-1.12.3-1.el7.centos.noarch (dockerrepo) Requires: selinux-policy-targeted >= 3.13.1-23 Installed: selinux-policy-targeted-3.7.19-292.el6_8.2.noarch (@updates) selinux-policy-targeted = 3.7.19-292.el6_8.2 Available: selinux-policy-targeted-3.7.19-292.el6.noarch (base) selinux-policy-targeted = 3.7.19-292.el6 Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo) Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit) Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo) Requires: libsystemd.so.0()(64bit) Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo) Requires: libc.so.6(GLIBC_2.17)(64bit) Error: Package: docker-engine-selinux-1.12.3-1.el7.centos.noarch (dockerrepo) Requires: selinux-policy-base >= 3.13.1-23 Installed: selinux-policy-targeted-3.7.19-292.el6_8.2.noarch (@updates) selinux-policy-base = 3.7.19-292.el6_8.2 Available: selinux-policy-minimum-3.7.19-292.el6.noarch (base) selinux-policy-base = 3.7.19-292.el6 Available: selinux-policy-minimum-3.7.19-292.el6_8.2.noarch (updates) selinux-policy-base = 3.7.19-292.el6_8.2 Available: selinux-policy-mls-3.7.19-292.el6.noarch (base) selinux-policy-base = 3.7.19-292.el6 Available: selinux-policy-mls-3.7.19-292.el6_8.2.noarch (updates) selinux-policy-base = 3.7.19-292.el6_8.2 Available: selinux-policy-targeted-3.7.19-292.el6.noarch (base) selinux-policy-base = 3.7.19-292.el6 Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo) Requires: systemd-units Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo) Requires: libseccomp.so.2()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
解决此问题的方法目前我想到了两种
1、升级centos至7
2、将yum原改成centos6的原
2.1、我原来用的yum原
[root@centos50g docker-training]# cat /etc/yum.repos.d/docker.repo [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg
2.2、修改后的yum原
[root@centos50g docker-training]# cat /etc/yum.repos.d/docker.repo [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/6/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg
2.3、清除yum缓存
[root@centos50g docker-training]# yum clean all [root@centos50g docker-training]# yum makecache
2.4、再次安装docker
[root@centos50g docker-training]# yum install docker-engine
此时便可安装成功,但是,安装后的docker的版本是1.7.1的
如果想要使用新的版本,需先升级centos至7后,再升级docker
相关推荐
docker安装部署依赖包container-selinux-2.9-4.el7.noarch.rpm,yum资源无法下载。
Centos7所需要的Docker离线安装包 libsepol-2.5-10.el7.x86_64.rpm libselinux-2.5-14.1.el7.x86_64.rpm audit-libs-2.8.5-4.el7.x86_64.rpm libsemanage-2.5-14.el7.x86_64.rpm libselinux-utils-2.5-14.1...
docker-compose离线安装包 放到这里方便大家使用 亲测这个版本非常好用 适配系统:Linux Ubuntu 银河麒麟 麒麟信安等
docker-ce-17.03.2.ce-1.el7.centos.x86_64 Centos7 离线安装包和依赖包、 audit-libs-python-2.7.6-3.el7.x86_64.rpm checkpolicy-2.5-4.el7.x86_64.rpm docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm docker-ce-...
docker-ce-selinux-17.05.0.ce-1.el7.centos.noarch.rpm离线安装包。
docker-ce container-selinux \ 若有些包已安装,则会提示下载失败,此时单独使用reinstall命令下载已安装的包即可,如: yum reinstall --downloadonly --downloaddir=/apps/docker-ce-v18 \ libseccomp 包...
docker 20.10.9 | docker-compose 1.24 离线安装包加安装一键式脚本
docker-compose安装包
3)本文涵盖内容有:daemon.json、docker.service、docker-20.10.7.tgz、docker-compose-linux-x86_64 4)本资源对应的配套博客内容地址为:https://blog.csdn.net/qq_23845083/article/details/141352156,有需要...
1. `docker-ce-cli_20.10.12_3-0_ubuntu-focal_amd64.deb`:这是Docker CLI的安装包,用于在Ubuntu Focal Fossa (20.10)系统上安装Docker的命令行工具。通过这个工具,你可以执行像`docker run`、`docker build`等...
解压上传到服务器 安装docker sh install.sh docker-18.03.1-ce.tgz 卸载docker sh uninstall.sh ...安装docker-compose sh docker-compose.sh docker-compose-Linux-x86_64 如有不明白的欢迎随时咨询
docker-ce离线安装文件及依赖包,安装的版本为19.03.9,经过测试安装,完全可用。audit-libs-2.8.5-4.el7.x86_64.rpm checkpolicy-2.5-8.el7.x86_64.rpm containerd.io-1.2.6-3.3.el7.x86_64.rpm container-selinux-...
Free。Docker-compose-2.4.1安装包:Linux。
Docker Engine适用于linux/centos 7 x86_64系统,文件包括内容: ...docker-ce-selinux-17.03.3.ce-1.el7.noarch.rpm docker-compose-plugin-2.3.3-3.el7.x86_64.rpm docker-scan-plugin-0.17.0-3.el7.x86_64.rpm
说明:在最小化CentOS Linux release 7.6.1810 中制作yum源,docker-ce是centos 7系统x86架构rpm包。 使用: 1、上传文件到/data/docker-ce解压,或者任意目录后修改docker-ce-26.1.0.repo 中baseurl路径。 2、mv ...
docker依赖包docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm
docker
在安装`docker-ce-18.03.1.ce-1.el7.centos.x86_64.rpm`时,系统会检查其依赖性,`container-selinux`就是其中之一。这是因为Docker需要SELinux的支持来实现安全的容器隔离。如果没有`container-selinux`,Docker...
本文将详细介绍`container-selinux`以及为何在CentOS 7.4上安装Docker时需要它。 `container-selinux`是SELinux(Security-Enhanced Linux)针对容器环境的扩展,其主要目的是增强容器的安全性。SELinux是一种强制...
离线环境下,在centos7.6系统上安装docker-ce-19.03,nvidia-docker2.4版本,其中docker-ce-19.03在docker-local.tar压缩文件里面,nvidia-docker2在nvidia-docker2.zip文件中。 具体安装流程如下: 1.安装docker ...