In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. 64-bit version of CentOS supported by Docker
1) CentOS 7
2) CentOS 8
3) later version
2. Uninstall the old version
[root@localhost ~] # yum remove docker docker-client docker-client-latest docker-common dokcer-latest docker-latest-logrotate docker-logrotate docker-engine
3. Set the Docker source
[root@localhost ~] # yum install-y yum-utils device-mappee-persistent-data lvm2
[root@localhost ~] # yum-config-manager-- add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
[root@localhost ~] # yum makecache fast
4. Install Docker (the default installation is the latest version)
[root@localhost ~] # yum install-y docker-ce docker-ce-cli containerd.io
5. Install the specified version
1) list the available versions (from high to low)
[root@localhost ~] # yum list docker-ce-- showduplicates | sort-r
2) install a specific version with the full package name, such as that name (docker-ce) plus the version string (second column), from the first colon (:) to the first concatenation character, separated by a hyphen (-). For example: docker-ce-18.09.9
[root@localhost ~] # yum install-y docker-ce-18.09.9 docker-ce-cli-18.09.9 containerd.io
6. Start docker
[root@localhost ~] # systemctl start docker.service
7. Docker starts from boot.
[root@localhost ~] # systemctl enable docker.service
8. Verify that docker is installed by running hello-world
[root@localhost ~] # docker run hello-world
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: 288
*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.