In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "docker installation tutorial", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn the "docker installation tutorial" bar!
1. Docker requires that the kernel version of the CentOS system is higher than 3.10. Check the prerequisites on this page to verify whether your CentOS version supports Docker.
Check your current kernel version with the uname-r command
$uname-r
2. Log in to Centos with root permission. Make sure the yum package is up to date.
$sudo yum update
3. Uninstall the old version (if the old version is installed)
$sudo yum remove docker docker-common docker-selinux docker-engine
4. Install the required software packages. Yum-util provides yum-config-manager functions, and the other two are dependent on devicemapper drivers.
$sudo yum install-y yum-utils device-mapper-persistent-data lvm2
5. Set the yum source
$sudo yum-config-manager-- add-repo https://download.docker.com/linux/centos/docker-ce.repo
6. You can view all docker versions in all repositories and select a specific version to install
$yum list docker-ce-- showduplicates | sort-r
7. Install docker
$sudo yum install docker-ce # since only stable repository is enabled by default in repo, the latest stable version 17.12.0$ sudo yum install # is installed here, for example: sudo yum install docker-ce-17.12.0.ce
8. Start and join the boot boot
$sudo systemctl start docker$ sudo systemctl enable docker
9. Verify whether the installation is successful (both client and service indicate that the docker installation starts successfully)
$docker version
Transaction check error: file / usr/bin/docker from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64 file / usr/bin/docker-containerd from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.12.6-68.gitec8512b.el7. Centos.x86_64 file / usr/bin/docker-containerd-shim from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64 file / usr/bin/dockerd from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64
2. Uninstall the old version of the package
$sudo yum erase docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64
3. Install docker again
Sudo yum install docker-ce thank you for reading, the above is the content of "docker installation tutorial", after the study of this article, I believe you have a deeper understanding of the installation tutorial of docker, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.