In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install the Docker container in the Linux system, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Although Docker container has attracted much attention as a new concept, it is estimated that many people do not have a very clear idea about how to use Docker and how to really use container technology.
The system of 1.CentOS server is CentOS7.4 's [root@VM_82_178_centos ~] # cat / etc/RedHat-releaseCentOS Linux release 7.4.1708 (Core) # install dependency package yum install-y yum-utils device-mapper-persistent-data lvm2# add Docker package source yum-config-manager\-- add-repo\ https://download.docker.com/linux/centos/docker-ce.repo# install Docker CEyum install docker-ce-y # launch systemctl start Docker# boot systemctl enable docker# view Docker information install apt-get update installation certificate on docker info2.Ubuntu: apt-get install\ apt-transport-https\ ca-certificates\ curl\ software-properties-commoncurl-fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add-key:sudo apt-key fingerprint 0EBFCD88pub 4096R/0EBFCD88 2017-02-22 Key fingerprint to add docker source = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88uid Docker Release (CE deb) sub 4096R/F273FCD8 2017-02-22 add docker package source: sudo add-apt-repository\ "deb [arch=amd64] https://download.docker.com/linux/ubuntu\ $(lsb_release-cs)\ stable" and the new apt package index: sudo apt-get update install docker ceapt-get install docker-ce3. Configure Docker Accelerator
Docker Hub provides many images from which you can download hundreds of thousands of free application images. As the cornerstone of the docker ecosystem, these images are indispensable resources for us to use and learn docker. In order to solve the stability and speed problems encountered by domestic users when using Docker Hub, DaoCloud launched a new generation of permanent free accelerator service. Linux:
Curl-sSL https://get.daocloud.io/daotools/set_mirror.sh | sh-s http://bc437cce.m.daocloud.io[root@localhost ~] # curl-sSL https://get.daocloud.io/daotools/set_mirror.sh | sh-s http://bc437cce.m.daocloud.iodocker version > = 1.12 {"registry-mirrors": ["http://bc437cce.m.daocloud.io"]}Success.You need to restart docker to take effect: sudo systemctl" Restart docker [root@localhost ~] # [root@localhost ~] # systemctl restart docker [root@localhost ~] # systemctl stop docker [root@localhost ~] # ps-ef | grep dockerroot 15185 3300 0 01:39 pts/1 00:00:00 grep-- color=auto docker [root@localhost ~] # systemctl start docker [root@localhost ~] # ps-ef | grep dockerroot 15191 12 01:39? 00:00:00 / usr/bin/dockerdroot 15198 15191 0 01:39? 00:00:00 docker-containerd-config / var/run/docker/containerd/containerd.tomlroot 15325 3300 0 01:39 pts/1 00:00:00 grep-color=auto docker [root@localhost ~] #
These are all the contents of the article "how to install Docker containers in Linux systems". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to 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.