Get the App
SLTechnology News&Howtos  ›  Servers  › 

Docker upgrade version

Shulou Source: shulou.com Published: 2022-06-02 21:54:16 09月22日 Update

Docker upgrade version 1, view system requirements

Docker requires the kernel version of the CentOS system to be higher than 3.10. Check the kernel version of CentOS.

# uname-a2. Delete the old version # yum remove docker docker-common docker-selinux docker-engine3 and install the required software packages

Yum-util provides yum-config-manager functions, and the other two are dependent on the devicemapper driver.

# yum install-y yum-utils device-mapper-persistent-data lvm24, set Docker yum source # yum-config-manager-- add-repo https://download.docker.com/linux/centos/docker-ce.repo5, view all docker versions in all repositories

You can view all docker versions in all repositories and select a specific version to install.

# yum list docker-ce-- showduplicates | sort-R6. Install docker# yum install docker-ce

Since only stable repository is enabled by default in repo, the latest stable 18.03.0.ce-1.el7.centos is installed here.

If you are installing a specific version:

# yum install docker-ce-18.06.1.ce7, launch

Set to boot

# systemctl enable docker

Start

# systemctl start docker

View startup status

# systemctl status docker

View version

# docker version

Tags: Version repository kernel system upgrade two function status software software package selection driver Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information vpn Redmi Linux MySQL