In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to deploy the 19th version of docker by CentOS7. I hope you will get something after reading this article. Let's discuss it together.
1. Install the dependency package
[root@localhost ~] # yum install-y yum-utils device-mapper-persistent-data lvm2
2. Set Ali Cloud Mirror Source
[root@localhost ~] # yum-config-manager-- add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3. Install Docker-CE
[root@localhost ~] # yum install-y docker-ce
4. Turn off the firewall and enhanced security features
[root@localhost ~] # systemctl stop firewalld.service [root@localhost ~] # setenforce 0 [root@localhost ~] #
5. Enable the service and set it to boot automatically.
[root@localhost ~] # systemctl start docker.service [root@localhost ~] # systemctl enable docker.serviceCreated symlink from / etc/systemd/system/multi-user.target.wants/docker.service to / usr/lib/systemd/system/docker.service. [root@localhost ~] #
6. Set Ali Cloud Image acceleration
(1) go to the home page of Aliyun and choose to log in. Those who do not have an account can register one.
(2) Select the console after logging in successfully
(3) Select products and services, and then select container image service.
(4) choose the lowest mirror accelerator, and then you can provide the corresponding accelerator address according to your system. Everyone has their own accelerator address.
(5) configure image acceleration
[root@localhost ~] # cd / etc/docker/ # # if you don't have this directory Manually create [root@localhost docker] # lskey.json [root@localhost docker] # tee / etc/docker/daemon.json "registry-mirrors": ["https://******.******.aliyuncs.com"]>} > EOF {" registry-mirrors ": [" https://******.*******.aliyuncs.com"]}[root@localhost docker] # lsdaemon.json key.json [root@] Localhost docker] # systemctl daemon-reload # # reload daemon [root@localhost docker] # systemctl restart docker # # restart docker [root@localhost docker] #
7. Enable the packet forwarding function of the system
[root@localhost docker] # echo "net.ipv4.ip_forward=1" > > / etc/sysctl.conf [root@localhost docker] # sysctl-p # # load configuration net.ipv4.ip_forward=1 [root@localhost docker] # after reading this article, I believe you have a certain understanding of "the method of CentOS7 deploying docker version 19". If you want to know more about it, welcome to follow the industry information channel, 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.