Saturday, January 6, 2018

Witches' Sabbath with yum install and docker

After a major CentOS update, when I "oc cluster up" I get this:

Error: Minor number must not contain leading zeroes "01"

the usual "docker version mismatch" issue (go to hell OpenShift)

So I "yum install docker" and I get this:

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.spreitzer.ch
* epel: ftp.nluug.nl
* extras: mirror.spreitzer.ch
* ius: mirror.amsiohosting.net
* updates: mirror.spreitzer.ch
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.12.6-68.gitec8512b.el7.centos will be installed
--> Processing Dependency: docker-common = 2:1.12.6-68.gitec8512b.el7.centos for package: 2:docker-1.12.6-68.gitec8512b.el7.centos.x86_64
--> Processing Dependency: docker-client = 2:1.12.6-68.gitec8512b.el7.centos for package: 2:docker-1.12.6-68.gitec8512b.el7.centos.x86_64
--> Running transaction check
---> Package docker-client.x86_64 2:1.12.6-68.gitec8512b.el7.centos will be installed
---> Package docker-common.x86_64 2:1.12.6-68.gitec8512b.el7.centos will be installed
--> Processing Conflict: docker-ce-18.01.0.ce-0.1.rc1.el7.centos.x86_64 conflicts docker
--> Processing Conflict: docker-ce-18.01.0.ce-0.1.rc1.el7.centos.x86_64 conflicts docker-io
--> Finished Dependency Resolution
Error: docker-ce conflicts with 2:docker-1.12.6-68.gitec8512b.el7.centos.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest






I try "yum install docker --skip-broken" but I still get

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.spreitzer.ch
* epel: ftp.nluug.nl
* extras: mirror.spreitzer.ch
* ius: mirror.amsiohosting.net
* updates: mirror.spreitzer.ch
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.12.6-68.gitec8512b.el7.centos will be installed
--> Processing Dependency: docker-common = 2:1.12.6-68.gitec8512b.el7.centos for package: 2:docker-1.12.6-68.gitec8512b.el7.centos.x86_64
--> Processing Dependency: docker-client = 2:1.12.6-68.gitec8512b.el7.centos for package: 2:docker-1.12.6-68.gitec8512b.el7.centos.x86_64
--> Running transaction check
---> Package docker-client.x86_64 2:1.12.6-68.gitec8512b.el7.centos will be installed
---> Package docker-common.x86_64 2:1.12.6-68.gitec8512b.el7.centos will be installed
--> Processing Conflict: docker-ce-18.01.0.ce-0.1.rc1.el7.centos.x86_64 conflicts docker
--> Processing Conflict: docker-ce-18.01.0.ce-0.1.rc1.el7.centos.x86_64 conflicts docker-io
extras/7/x86_64/filelists_db | 528 kB 00:00:00

Packages skipped because of dependency problems:
2:docker-1.12.6-68.gitec8512b.el7.centos.x86_64 from extras
2:docker-client-1.12.6-68.gitec8512b.el7.centos.x86_64 from extras
2:docker-common-1.12.6-68.gitec8512b.el7.centos.x86_64 from extras



Then I do yum list installed | grep docker

docker-ce.x86_64 18.01.0.ce-0.1.rc1.el7.centos @docker-ce-test

then "yum remove docker-ce.x86_64" and "yum install docker"


Installed:
docker.x86_64 2:1.12.6-68.gitec8512b.el7.centos

Dependency Installed:
docker-client.x86_64 2:1.12.6-68.gitec8512b.el7.centos docker-common.x86_64 2:1.12.6-68.gitec8512b.el7.centos



and everything works again.


I used to love Docker, but since it was split in CE and EE they messed really hard. Too much greed for money and need to place expensive consultants.

List of useful yum commands: https://www.thegeekstuff.com/2011/08/yum-command-examples/

yum install bla
yum -y install bla
yum remove bla
yum update bla
yum search bla
yum info bla
yum list
yum list installed
#this to find which package a file belongs to
yum provides filename

yum grouplist
yum groupinstall 'bla'
yum groupupdate 'bla'
yum groupremove 'bla'

yum repolist
yum repolist all
yum --enablerepo=fedora-source install vim-X11.x86_64



No comments: