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

Centos7 detailed steps for installing docker

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

Share

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

This article mainly explains "the detailed steps of installing docker in centos7". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the detailed steps of installing docker in centos7.

Docker CE, the community free version, and Docker EE, the enterprise version, emphasize security, but you need to pay for it.

This article introduces the installation and use of Docker CE.

Install some necessary system tools:

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

Add software source information:

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

Update the yum cache:

Sudo yum makecache fast

Install Docker-ce:

Sudo yum-y install docker-ce

Start the Docker background service

Sudo systemctl start docker

Set the boot to start the docker service

Sudo systemctl enable docker

We have an inaccessible problem when we use docker-v to mount files. We need to shut down Selinux.

Temporary shutdown:

[root@localhost ~] # getenforce

Enforcing [root@localhost ~] # setenforce 0

[root@localhost ~] # getenforce

Permissive

Permanently close:

[root@localhost ~] # vim / etc/sysconfig/selinux

Change SELINUX=enforcing to SELINUX=disabled

Configure the Image Accelerator for users whose Docker client version is greater than 1.10.0 you can use the accelerator by modifying the daemon configuration file / etc/docker/daemon.json

Sudo mkdir-p / etc/docker

Sudo tee / etc/docker/daemon.json

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