In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about how to install docker in CentOS7, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
1. Use Image Warehouse for installation (docker Image Warehouse is required for first installation)
`
Install the required software packages
$sudo yum install-y yum-utils device-mapper-persistent-data lvm2
`
two。 Set up the stable image repository.
`
# yum-config-manager\
-- add-repo\
Https://download.docker.com/linux/centos/docker-ce.repo
`
Start the docker installation:
1. Update the yum package index
`
# yum installmakecache fast
`
two。 Install the latest version of docker ce
`
# yum install docker-ce
`
3. Start docker
`
[root@wg001 ~] # systemctl start docker
`
4. Verify that docker is installed by running the hello-world image
`
[root@wg001 ~] # docker run hello-world
`
Output content
`
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
Executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
To your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$docker run-it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
Https://hub.docker.com/
For more examples and ideas, visit:
Https://docs.docker.com/get-started/
`
5. Uninstall docker ce
`
# yum remove docker-ce
# rm-rf / var/lib/docker
`
The above is how to install docker in CentOS7. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.