Docker Community Forums

Share and learn in the Docker community.

How to install Docker-ce-18.06.1 on CentOS 7


#1

Ok so I’m new to Docker and am trying to setup a Kubernetes cluster (as requested at my work). From what I see Kubernetes (kubeadm?) isn’t validated against Docker 18.09.1, but is against 18.06.1. How for the life of me do I install docker-ce-18.06.1? I have created a new CentOS 7 machine, have run yum update to have everything latest on there. I’ve turned off the firewall. I’ve also done the following steps to prepare for a kubernetes cluster:

Edit the /etc/hosts file and put in the IP and name of each machine in the cluster on each host
Disable SELinux and swap with the following commands
setenforce 0
sed -i --follow-symlinks ‘s/SELINUX=enforcing/SELINUX=disabled/g’ /etc/sysconfig/selinux
swapoff -a
Enable br_netfilter Kernel Module
modprobe br_netfilter
echo ‘1’ > /proc/sys/net/bridge/bridge-nf-call-iptables
Edit the /etc/fstab file
vim /etc/fstab, then edit the line that shows something like dev/mapper/centos-swap swap
If not installed already install docker-ce dependencies
yum install -y yum-utils device-mapper-persistent-data lvm2
Then add the docker-ce repository with this command
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

However when I run sudo yum install -y docker-ce I get version 18.09.1. If I run this:
sudo yum list docker-ce --showduplicates | sort -r

I get these:
docker-ce.x86_64 3:18.09.1-3.el7 docker-ce-stable
docker-ce.x86_64 3:18.09.0-3.el7 docker-ce-stable
docker-ce.x86_64 3:18.09.0-3.el7 @docker-ce-stable
docker-ce.x86_64 18.06.1.ce-3.el7 docker-ce-stable
docker-ce.x86_64 18.06.0.ce-3.el7 docker-ce-stable
docker-ce.x86_64 18.03.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 18.03.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.12.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.12.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.09.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.09.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.2.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.3.ce-1.el7 docker-ce-stable
docker-ce.x86_64 17.03.2.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.0.ce-1.el7.centos docker-ce-stable

But no matter how I specify it, even if it’s sudo yum install docker-ce-18.06.1 it just tells me that there’s no package available. I’ve tried it many different ways, so what the heck? I’m trying to get this done for a POC for next week, but so far it’s not good. I’ve googled around, I’ve tried downgrading, but that doesn’t seem to do anything. If I ‘downgrade’ it appears to go to 18.09.0, but if I type in docker -v I still see 18.09.1. If I try the downgrade command again it acts like it wants to go down to 18.06.1, but just throws me tons of errors:

Transaction check error:
file /usr/bin/docker from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/bash-completion/completions/docker from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-attach.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-checkpoint-create.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-checkpoint-ls.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-checkpoint-rm.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-checkpoint.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-commit.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-config-create.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-config-inspect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-config-ls.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-config-rm.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-config.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-attach.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-commit.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-cp.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-create.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-diff.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-exec.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-export.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-inspect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-kill.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-logs.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-ls.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-pause.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-port.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-prune.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-rename.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-restart.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-rm.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-run.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-start.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-stats.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-stop.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-top.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-unpause.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-update.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container-wait.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-container.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-cp.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-create.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-deploy.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-diff.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-events.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-exec.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-export.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-history.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-build.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-history.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-import.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-inspect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-load.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-ls.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-prune.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-pull.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-push.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-rm.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-save.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image-tag.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-image.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-images.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-import.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-info.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-inspect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-kill.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-load.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-login.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-logout.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-logs.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-manifest-annotate.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-manifest-create.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-manifest-inspect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-manifest-push.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-manifest.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-network-connect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-network-create.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-network-disconnect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-network-inspect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-network-ls.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-network-prune.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-network-rm.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-network.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-node-demote.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-node-inspect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-node-ls.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-node-promote.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-node-ps.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-node-rm.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-node-update.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-node.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-pause.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-plugin-create.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-plugin-disable.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-plugin-enable.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-plugin-inspect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-plugin-install.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-plugin-ls.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-plugin-push.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-plugin-rm.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-plugin-set.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-plugin-upgrade.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:18.09.1-3.el7.x86_64
file /usr/share/man/man1/docker-plugin.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with

Error Summary

This is very frustrating. How can I install a specific version of Docker to get this POC off the ground? Everytime I tried using 18.09.1 I’d run into issues at the very end of the setup. Whenever I’d run this command:

kubectl get nodes

I’d get a response initially that everything was good. But if I tried adding another node to the cluster it’d fail acting as if it couldn’t talk to the master node and I verified that firewalld was turned off and disabled on all nodes. Suddenly I’d go back to the master node and when I ran that command again it just errored out acting as if port 8080 wasn’t working and then suddenly I wouldn’t be able to SSH into the machine. All machines are in the same subnet and are VM’s, so I don’t know what the issue is there, other than Kubernetes not supporting 18.09.1 of Docker.

Please help. This is very frustrating and not really impressing me with Docker/Kubernetes at all if things aren’t that simple to setup. I know I could do a Docker Swarm, but the requirement is for Kubernetes right now.


(Metin Y.) #2

If there are conflicts with your downgrading approach, try to remove 18.09 first and install 18.06.1 specificly.

$ sudo yum remove docker-ce

Not 100% sure about the required level of detail, hence three versions from which at least one should work:

$ sudo yum install docker-ce:18.06.1.ce-3.el7 
$ sudo yum install docker-ce:18.06.1.ce-3
$ sudo yum install docker-ce:18.06.1

Then you should lock the version on docker-ce:

$ sudo yum install yum-plugin-versionlock
$ sudo yum versionlock add docker-ce

#3

Didn’t work. I was able to run the first command to remove docker, but if I try to install any of the other versions you have listed it fails. It just tells me that there’s nothing to do, as if it can’t find the packages, but if I run the yum list docker-ce --showduplicates | sort -r I see a whole list of versions, including the 18.06.1 version, so I don’t understand why it doesn’t work for me.


(Metin Y.) #4

you are right, this works: yum install docker-ce-18.06.1.ce-3.el7


#5

That seemed to want to work on the machine, but even though I ran the remove command earlier to get rid of the previous version of Docker (and even rebooted) it still thinks it’s there, so it wouldn’t let me install. I’m going to create a new VM real quick and will try again, but I’m thinking it’ll work.


(Metin Y.) #6

I tried the instalation on a centos7.3 machine a couple of minutes ago, which already had the package docker-ce.x86_64 3:18.09.1-3.el7 installed before.

I was able to simply remove it with: yum remove docker-ce*
The * is important as the docker-ce-cli package of 18.09.1 remains otherwise!

Then i had to thinker arround with the install syntax for the specific package version and voila it worked.


#7

Ok so I got Docker 18.06.1 to install. I went thru the rest of my steps posted above to install Kubernetes. I have the firewall turned off on all the nodes. At one point when I run the kubectl get nodes I see the master node, but the status showed not ready. I realized the firewall wasn’t off yet, so I did that and rebooted. Once back in I run the kubectl get nodes and all I get is this:

The connection to the server localhost:8080 was refused - did you specify the right host or port?

This has happened every time I’ve tried setting this up, even with the 18.09.1 version which I thought was the issue. All the machines are on the same subnet. I’ve given all of them DHCP reservations as well, so I have no idea why I’m getting this, but it’s very frustrating. Am I in the right place or do I need to go to a Kubernetes forum?


#8

This command seemed to work for me:
export KUBECONFIG=/etc/kubernetes/admin.conf

But now the master node shows as not ready, so that’s something I’ll have to dive into and figure out.


(Metin Y.) #9

While joining the cluster a simple thing.
From what i remember neither kubectl, not kube-proxy run ootb.
Though, the documentation should guide you thru te process.

Been there, done that, didn’t use it for months and forgot again :slight_smile:

Good luck in your journey!


#10

So I ran the 'kubectl describe nodes ’ and saw that there was an issue with the network:

Ready False Mon, 28 Jan 2019 14:11:31 -0800 Mon, 28 Jan 2019 12:07:11 -0800 KubeletNotReady runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

So I re-ran the command to setup flannel:
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml

but for whatever reason when I did the kubectl get nodes again it still showed as not ready. Looking just prior to that I see that kubelet and kube-proxy were in a ‘Starting’ state. I then ran the kubectl describe nodes and saw that kubelet was now posting a ready status and shows KubeletReady instead of KubeletNotReady previously. After waiting a few moments and running the describe nodes command again everything looked good, so I ran the kubectl get nodes command and now it shows as ready.

One other question I do have that I’m not sure on is running these commands:

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf HOME/.kube/config sudo chown (id -u):$(id -g) $HOME/.kube/config

I’m supposed to run them as a regular user which is fine and what I’ve done on the master node. But do I need to run these on the worker nodes? I want to make sure before I start trying to setup the worker nodes.


#11

Aaaannndddd now I can’t even putty into the master node. When I go to the VM and run the same kubectl get nodes I get the same error as before. Even if I try to describe the nodes I get the same error. SSH service is running, so I don’t know what’s going on here, but it’s driving me crazy.


#12

Ok so this gets even weirder. I look at vSphere and it thinks the IP for the master node has changed. I open the console and verify that the IP is still what it should be. For whatever reason I still have the error where it doesn’t see the node. So I reboot. Verify the IP is correct. Still can’t see the node. Re-run the export KUBECONFIG=/etc/kubernetes/admin.conf command and then do the kubectl get nodes and it shows as working. Something is really messed up here. I can also now SSH into the VM without issue.