In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to install and deploy Docker under the CentOS7.6 system". In the daily operation, I believe many people have doubts about how to install and deploy Docker under the CentOS7.6 system. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install and deploy Docker under the CentOS7.6 system". Next, please follow the editor to study!
Premise statement
Currently, only kernels in Centos distributions support Docker.
Docker runs on Centos-7 and requires the system to be 64-bit and kernel version 3.10 or above.
Docker runs on Centos-6.5 or later and requires the system to be 64-bit, system kernel standard 2.6.32-431 or later
View the system version command [root@docker ~] # uname-r3.10.0-957.el7.x86_64 [root@docker ~] # cat / etc/redhat-release CentOS Linux release 7.6.1810 (Core) Docker version
Docker-ce: community Edition
Docker-ee: enterprise Edition (paid)
Docker installation
Prepare a host of the Linux operating system and configure the relevant network parameters to achieve normal communication; here I use CentOS7.6.
Host service configuration dockerdocker service 1C1GDocker deployment
The yum source needed to configure docker (we are using the Ali source here)
# download docker source [root@docker ~] # yum install-y wget [root@docker ~] # wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Install and start Docker
# download docker [root@docker ~] # yum install-y docker# launch docker [root@docker ~] # systemctl start docker# verify [root@docker ~] # docker version Client: Version: 1.13.1 API version: 1.26 Package version: docker-1.13.1-162.git64e9980.el7.centos.x86_64 Go version: Go1.10.3 Git commit: 64e9980/1.13.1 Built: Wed Jul 1 14:56:42 2020 OS/Arch: linux/amd64 Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Package version: docker-1.13.1-162.git64e9980 .el7.centos.x86 _ 64 Go version: go1.10.3 Git commit: 64e9980/1.13.1 Built: Wed Jul 1 14:56:42 2020 OS/Arch: linux/amd64 Experimental: falseDocker Ali Cloud Image acceleration
Visit Aliyun's official website to get the acceleration address of the image.
Https://www.aliyun.com/?utm_content=se_1000301881
{"registry-mirrors": ["https://3290299n.mirror.aliyuncs.com"]}"
Write the mirror accelerator address to / etc/docker/daemon.json
[root@docker ~] # cat > / etc/docker/daemon.json {> "registry-mirrors": ["https://3290299n.mirror.aliyuncs.com"]>} > EOF"
Start daemon and restart docker
[root@docker ~] # systemctl daemon-reload [root@docker ~] # systemctl restart docker here, the study on "how to install and deploy Docker under CentOS7.6 system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.