Install docker transfer on Centos7

**Why can't 80% of programmers be architects? >>> **

Docker adopts the timeline method as the version number since version 1.13, divided into community version CE and enterprise version EE.

The community version is free for individual developers and small groups to use, and the enterprise version will provide additional paid services, such as infrastructure, containers, and plug-ins that have been officially tested and certified.

The community version is released in two ways: stable and edge. The stable version is updated quarterly, such as 17.06, 17.09; the edge version is updated every month, such as 17.09, 17.10.

One, install docker

1、 Docker requires the kernel version of the CentOS system to be higher than 3.10. Check the prerequisites on this page to verify whether your CentOS version supports Docker.

Check your current kernel version by **uname -r ** command

$ uname -r

2、 Log in to Centos with root privileges. Ensure that the yum package is updated to the latest.

$ sudo yum update

3、 Uninstall the old version (if the old version is installed)

$ sudo yum remove docker  docker-common docker-selinux docker-engine

4、 Install the required software packages, yum-util provides yum-config-manager function, and the other two are dependent on the devicemapper driver

$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2

5、 Set yum source

$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

6、 You can view all docker versions in all warehouses and select a specific version to install

$ yum list docker-ce --showduplicates | sort -r

7、 Install docker

$ sudo yum install docker-ce  #Since only the stable warehouse is opened by default in the repo, the latest stable version 17 is installed here.12.0
$ sudo yum install <FQPN>  #For example: sudo yum install docker-ce-17.12.0.ce

8、 Start and add startup

$ sudo systemctl start docker
$ sudo systemctl enable docker

9、 Verify that the installation is successful (there are two parts, client and service, indicating that the docker installation and startup are successful)

$ docker version

Second, the problem##

1、 Because the old version of docker has been installed before, the following error was reported during installation:

Transaction check error:
 file /usr/bin/docker from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file frompackage docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64
 file /usr/bin/docker-containerd from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file frompackage docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64
 file /usr/bin/docker-containerd-shim from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file frompackage docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64
 file /usr/bin/dockerd from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file frompackage docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64

2、 Uninstall the old version of the package

$ sudo yum erase docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64

3、 Install docker again

$ sudo yum install docker-ce

Recommended Posts

Install docker transfer on Centos7
Install Docker on Centos7
install Docker on centos6.5
Install docker on Centos system
CentOS 7 install Docker
CentOS7 install Docker
Centos7 install Docker
Centos7 install docker18
centos7 install docker
CentOS 6 install Docker
Centos8 install Docker
install LNMP on centos7.4
Install Java on Centos 7
Install docker on Ubuntu
CentOS 7 install Docker service
Nodejs install on centos7
Install Docker on ubuntu18.04
Maven install on centos7
Install MongoDB on CentOS 7
Install Surelog on CentOS8
CentOS 8-dnf install docker
Openjdk install on centos7
Install Jenkins on centos7
install RabbitMQ on centos
Install RabbitMQ on CentOS 7
Install Docker on Ubuntu18
install oracle on centos
Install Elasticsearch 6 on centos7
Install RabbitMQ on CentOS7
CentOS 7 install Docker CE
How to install and use Docker on CentOS 7
How to install Docker CE on RHEL 8 / CentOS 8
Install ElasticSearch 7.x on CentOS 7
install EPEL repo on centos
Install Zabbix 3.4 based on CentOS 7
install virtualbox on centos server
Install Docker on Ubuntu 18.04 offline
Docker EE installation on centos7
Install Nginx server on CentOS 7
How to quickly install docker on Linux (Centos version)
1.5 Install Centos7
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
Install JDK8 in rpm on CentOS7
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install TensorFlow on CentOS 8
How to install TeamViewer on CentOS 8
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8
Install MySql with Docker in CentOS7
How to install Jenkins on CentOS 8
How to install Go on CentOS 8
How to install GCC on CentOS 8
Docker ubuntu: install python-PIL-image environment on 14.04
How to install Yarn on CentOS 8
How to install Nginx on CentOS 8
How to install Asterisk on CentOS 7
How to install Jenkins on CentOS 8
Install MySQL on Linux CentOS7 (Windows)