In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "docker instance Analysis installed on Centos7". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
First, install docker
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
Second, the question
1. Since the old version of docker has been installed before, an error was reported during installation as follows:
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
This is the end of $sudo yum install docker-ce "docker instance Analysis on Centos7 installation". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.