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

Detailed installation configuration of Docker

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

1. Configure yum source Install docker [root @ docker ~] # cd / etc/yum.repos.d/ # switch to [root@docker yum.repos.d] # wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo# under the yum source directory to download Ali's yum source library file [root@docker yum.repos.d] # cd [root@docker ~] # yum makecache # to establish yum metadata cache [root@docker ~] # yum Repolist # lists the packages available in the yum warehouse.. # omit part of the content docker-ce-stable/x86_64 Docker CE Stable-x86 '645 confirmation docker. There are available packages in this column, and what I show here is 58 (it's okay to have more and less, but it must be this column, and it can't be 0) [root@docker ~] # yum install-y docker-ce-18.09.0-3.el7 docker-ce-cli-18.09.0-3.el7 containerd.io-1.2.0-3.el7 # yum install docker

For the explanation of containerd, please refer to the explanation of containerd

# # if the centos installation is minimized, you need to execute the following command to support the automatic completion of the Docker command

[root@docker01~] # yum-y install bash-completion [root@docker01~] # curl-L https://raw.githubusercontent.com/docker/compose/1.24.1/contrib/completion/bash/docker-compose-o / etc/bash_completion.d/docker-compose [root@docker01~] # source / etc/bash_completion.d/docker- composeII. Enable acceleration of downloading images

Next, enable the download image acceleration feature provided by Daoxun (Ali also provides this feature, I wrote cloud here).

Dayun Accelerator website: https://www.daocloud.io/

The process is as follows:

(1) visit Daoyun's official website

(2) register the user and log in

After the first two steps are completed, please look at the figure:

When you see the following interface, drag down the page:

Drag here and copy the appropriate command based on your system version (copy the following line based on the Linux server):

[root@docker ~] # curl-sSL https://get.daocloud.io/daotools/set_mirror.sh | sh-s http://f1361db2.m.daocloud.io# executes the command we copied [root@docker ~] # systemctl daemon-reload [root@docker ~] # systemctl restart docker [root@docker ~] # systemctl enable docker# after completing the accelerator operation There will be an additional file in the / etc/docker directory [root@docker ~] # cat / etc/docker/daemon.json # this is the acceleration-related file {"registry-mirrors": ["http://f1361db2.m.daocloud.io"]}[root@docker ~] # docker-v # View the docker version Docker version 18.09.0, build 4d60db4

-this is the end of this article. Thank you for reading-

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