Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Docker upgrade version

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report