In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "the reason why you can't start after installing docker with yum install docker under centOS". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "the reason why you can't start after installing docker using yum install docker under centOS".
Unable to start after installation using yum install docker
[root@apptest ~] # service docker start
Docker: unrecognized service
If you stay at the above steps, you can use the following command to install it. I struggled with a problem for two days. I tried to turn off the firewall, shut down selinux, reinstall the system, and so on. If you have solved it, please reply and thank me.
[root@apptest ~] # yum remove docker
[root@apptest ~] # yum remove docker-selinux
[root@test yum.repos.d] # vi / etc/yum.repos.d/docker.repo
[dockerrepo]
Name=Docker Repository
Baseurl= https://yum.dockerproject.org/repo/main/centos/$releasever/
Enabled=1
Gpgcheck=1
Gpgkey= https://yum.dockerproject.org/gpg
[root@test yum.repos.d] # yum install docker-engine
Installed: docker-engine.x86_64 0vl 1.10.2-1.el7.centos
Installed as a dependency: docker-engine-selinux.noarch 0VOR 1.10.2-1.el7.centos
[root@apptest ~] # service docker start
Starting cgconfig service: [OK]
Starting docker: [OK]
[root@apptest ~] # docker images REPOSITORY TAG IMAGE ID CREATED SIZE
[root@test yum.repos.d] # docker version Client: Version: 1.10.2 API version: 1.22 Go version: go1.5.3 Git commit: c3959b1 Built: Mon Feb 22 16:16:33 2016 OS/Arch: linux/amd64 Server: Version: 1.10.2 API version: 1.22 Go version: go1.5.3 Git commit: c3959b1 Built: Mon Feb 22 16:16:33 2016 OS/Arch: linux/amd64
[root@test yum.repos.d] # or use the following methods
[root@apptest ~] # curl-fsSL https://get.docker.com/ | sh + sh-c 'sleep 3
Yum-y-Q install docker-engine'
Warning: / var/cache/yum/x86_64/7/docker-main-repo/packages/docker-engine-selinux-1.10.2-1.el7.centos.noarch.rpm: header V4 RSA/SHA512 Signature Key ID 2c52609d: the public key of NOKEY docker-engine-selinux-1.10.2-1.el7.centos.noarch.rpm has not been installed to import GPG key 0x2C52609D: user ID: "Docker Release Tool (releasedocker)" fingerprint: 5811 8e89 f3a9 1289 7c07 0adb f762 2157 2c52609d from: https://yum.dockerproject.org/gpg setsebool: SELinux is disabled. + sh-c 'docker version' Client: Version: 1.10.2 API version: 1.22 Go version: go1.5.3 Git commit: c3959b1 Built: Mon Feb 22 16:16:33 2016 OS/Arch: linux/amd64 Cannot connect to the Docker daemon. Is the docker daemon running on this host? If you would like to use Docker as a non-root user, you should now consider adding your user to the "docker" group with something like: sudo usermod-aG docker your-user Remember that you will have to log out and back in for this to take effect! [root@apptest ~] #
[root@apptest ~] # service docker start Redirecting to / bin/systemctl start docker.service
[root@apptest ~] # docker images REPOSITORY TAG IMAGE ID CREATED SIZE
[root@apptest ~] #
The official website can be found at https://docs.docker.com/engine/installation/linux/centos/
At this point, I believe you have a deeper understanding of "the reason why you can't start after using yum install docker to install docker under centOS". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.