I have a centos 7 server and I installed docker-ce(17.06.0-ce, build 02c1d87). When I tried to install kubernetes, I keep getting below conflict. docker-1.12.6-32.git88a4867.el7.centos.x86_64 dependency has been installed during docker-ce installation. If I uninstall docker-ce , I am able to install kubernetes. I am not able to install docker-ce and kubernetes on a machine because of this conflict.
I uninstalled docker and reinstalled it, but no luck. Please help me with this
---> Package docker-client.x86_64 2:1.12.6-32.git88a4867.el7.centos will be installed
---> Package docker-common.x86_64 2:1.12.6-32.git88a4867.el7.centos will be installed
--> Processing Conflict: docker-ce-17.06.0.ce-1.el7.centos.x86_64 conflicts docker
--> Processing Conflict: docker-ce-17.06.0.ce-1.el7.centos.x86_64 conflicts docker-io
--> Finished Dependency Resolution
Error: docker-ce conflicts with 2:docker-1.12.6-32.git88a4867.el7.centos.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
FYI: I already tried yum remove docker docker-engine docker-selinux container-selinux and installed kubernetes. But this method is not allowing me to do anything in container. Yum update in ubuntu container is throwing error. I am also getting error in nginx container, centos container.
EG: When I ran command apt-get update, I keep getting error "E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? "
I executed command as root.