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

Install the docker application in one minute

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

Share

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

I. explanation

Docker requires the kernel version of the CentOS system to be higher than 3.10, so the centos7 operating system is used here.

Second, installation steps

1. Install vim and wget

Yum install-y wget vim

2. Install yum-utils, device-mapper-persistent-data, lvm2

Yum install-y yum-utils device-mapper-persistent-data lvm2,

3. Add yum source configuration

Yum-config-manager-- add-repo https://download.docker.com/linux/centos/docker-ce.repo

4. Install the latest docker

Yum install docker-ce-y

You can also list the available docker version numbers

Yum list docker-ce-- showduplicates | sort-r

For example, use yum install-y docker-ce-17.3.1 to install the specified version

5. Start docker and set self-boot.

Systemctl start docker

Systemctl enable docker

3. Uninstall docker

Yum remove docke-ce

Rm-rf / var/lib/docker

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