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

How to install docker-ce under Linux

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article introduces the knowledge of "how to install docker-ce under Linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Basic information

Node: 172.27.10.127

Configuration: memory 16GB CPU 8 Core, storage 200GB + 3TB

System version: CentOS Linux release 7.4.1708 (Core)

Kernel version: 3.10.0-693.el7.x86_64

I. online installation

1. Install the necessary system tools

# yum install-y yum-utils device-mapper-persistent-data lvm2

two。 Add software source information

# yum-config-manager-- add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

3. Open the software source

# vim / etc/yum.repos.d/docker-ce.repo

# yum makecache fast

4. View docker version

# yum list docker-ce.x86_64-- showduplicates | sort-r

5. Install the specified version of docker-ce

# yum-y install docker-ce- [VERSION]

6. Enable self-startup and start the docker service

# systemctl enable-now docker

2. Offline installation

Install docker-ce-19.03.11 as an example

1. Document preparation

# tar xf docker-ce_V19.03.11.tar

two。 Start installation

# cd docker-ce/# yum localinstall-y * .rpm

3. Configure docker service self-startup and startup

# systemctl enable-now docker.service

4. Examination result

# docker version

This is the end of "how to install docker-ce under Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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