Kubernetes installation on centos7

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

  • docker connection refused nodejs app
  • Rjava package installation freeze in a docker
  • nginx as proxy to my mysql server in docker
  • Docker - Updating Environment Variables of a Container
  • Docker: Share the same .so library different containers without compiling into each
  • How to pass container ip as ENV to other container in docker-compose file
  • ---> 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.

  • php-fpm error “no input file specified” with Docker
  • How does one service resolve the address of another service using docker compose, link hostname, and ports?
  • Docker: copy data from host to mounted host directory to access it from the running container
  • How to restart docker container without log level?
  • Elastic Server Not Starting Due to insufficient Memory
  • How do I set resources allocated to a container using docker?
  • 2 Solutions collect form web for “Kubernetes installation on centos7”

    According to the documentation, Kubernetes is not yet compatible with docker-ce (docker >=17.x):

    On each of your machines, install Docker. Version 1.12 is recommended, but v1.10 and v1.11 are known to work as well. Versions 1.13 and 17.03+ have not yet been tested and verified by the Kubernetes node team.

    From the changelog at https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG.md#external-dependency-version-information:

    Docker versions 1.10.3, 1.11.2, 1.12.6 have been validated

    As of Kubernetes 1.7, Docker 17.xx are not supported. You’ll need to uninstall Docker CE and let the Kubernetes installation instructions you are following install Docker 1.12 for you.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.