How to install older version of Docker in Linux
If you try to install to docker community version in your machine, by default, the latest version of docker will be installed, which is right now docker 18.03. But in some cases you need to install previous version of docker such as docker 17.03. For example, latest version of Kubernetes doesn’t support docker 18.03. Supported version of Docker for Kubernetes are right now 1.12, 1.13 and 17.03. So Docker 18.03 is not compatable with Kubernetes. Therefore, in your machine you need the previous version of Docker, say for example Docker 17.03, to be installed. Here I am going to demostrate the process of installing older version of Docker in Centos7. Follow the steps bellow for installing Docker 17.03 in your Centos machine:
- Download the the docker repo first.
sudo curl -SsL https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
2. Finally install two packages docker-ce-17.03 and docker ce-selinux-17.03. Also make sure, you keep obsoletes=0
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
You can read more blog posts from our very own site devopsengineersclub.com or our Facebook Group