how to install docker-ce 17+ on centos 6.9?
16,867
You need to peg the version:
$ yum install --setopt=obsoletes=0 \
docker-ce-17.03.2.ce-1.el7.centos.x86_64 \
docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch # on a new system with yum repo defined, forcing older version and ignoring obsoletes introduced by 17.06.0
More details here: https://github.com/docker/for-linux/issues/20
Related videos on Youtube
Author by
Juan Sebastian
Head of DevOps @ PSL, Im currently focused on overseeing the DevOps business offer for PSL, I help shape our vision on how to implement devops and ensure we are delivering that to our clients whether that is from the technical, process or cultural standpoint.
Updated on September 18, 2022Comments
-
Juan Sebastian over 1 year
Im currently trying to install docker-ce 17+ on a centOS 6.9 server, however, when running yum install docker-ce i get the following errors:
Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: libc.so.6(GLIBC_2.17)(64bit) Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: systemd-units Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: libseccomp.so.2()(64bit) Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: libsystemd.so.0()(64bit) Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: container-selinux >= 2.9 Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
If i run it with the skip broken flag i get still the same message,
Does anyone know a way around this?
-
Black almost 6 yearsdid you ever find a solution for this? Same issue exists still. Pegging version doesn't help me
-
Juan Sebastian almost 6 yearsNot really, although amazon linux is based on a centOS version lower than 7 and it can run docker-ce without issues, i suspect they might have recompiled a bunch of stuff and requirements for it.
-
-
PRIHLOP about 6 yearsNot working for me, unfortunately. Maybe because kernel version less then 3.x.
-
Black almost 6 yearsAlso doesn't work for me, Centos 6.9 - how can installing an EL7 on an EL6 host (as above) work?
-
kennyut over 5 yearsNot for me either. CentOS 6.7