In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to install and test docker in Contos". In the operation of actual cases, many people will encounter such a dilemma, 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!
Add a Docker repository
First, we must add an external repository to get the Docker CE. We will use the official Docker CE CentOS repository.
Installation steps:
Download docker-ce 's repo$curl https://download.docker.com/linux/centos/docker-ce.repo-o / etc/yum.repos.d/docker-ce.repo% Total% Received% Xferd Average Speed Time Current Dload Upload Total Spent Left Speed100 2424 2424 00 2669 0--:-2666 A Install dependency (this is a key step compared to CentOS 7) $yum install https://download.docker.com/linux/Fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpmDocker CE Stable-x86 steps 649.3 kB/s | 22 kB 00:02 Last metadata expiration check: before 0:00:01 Implemented at 05:23:13 on Sunday, April 19, 2020. Containerd.io-1.2.6-3.3.fc30.x86_64.rpm 544 kB/s | 21 MB 00:40 dependency resolved. = package architecture version repository size = install: containerd.io x86room64 1.2.6-3.3.fc30 @ commandline 21 M replace runc.x86_64 1.0.0-64.rc9.module_el8.1.0+272+3e64ee36 transaction summary = install 1 package total: 21 M are you sure? [y docker-ce$yum install docker-ce N]: y install last metadata expiration check: before 0:01:42, it was executed at 05:23:13 on Sunday, April 19, 2020. Dependency resolution. = package architecture version repository size = installation: docker-ce x86 "64 315 19.03.8-3.el7 docker-ce-stable 25 M installation dependency: libcgroup x86" 64 0.41-19.el8 base 70 kdocker-ce-cli x86 _ 64 1 19.03.8-3.el7 docker-ce-stable 40 M transaction Summary = install 3 package Total download: 64m installation size: 273m are you sure? [yUnip N]: y starts docker$systemctl start docker
We can check whether the service is running properly with the following command:
$systemctl status docker ● docker.service-Docker Application Container Engine Loaded: loaded (/ usr/lib/systemd/system/docker.service; disabled; vendor pre > Active: active (running) since Sun 2020-04-19 05:28:15 EDT 8min ago Docs: https://docs.docker.comMain PID: 60217 (dockerd) Tasks: 15 Memory: 195.9m CGroup: / system.slice/docker.service ├─ 60217 / usr/bin/dockerd-H fd://-- containerd=/run/containerd/conta > └─ 60528 / usr/bin/docker-proxy-proto tcp-host-ip 0.0.0.0-host-port >
So far, Docker has only been successfully installed, and other features have yet to be tested.
This is the end of "how to install and test docker in Contos". 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.