In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to install docker1.7.1 offline in centos6.7, the content is very detailed, interested friends can refer to, hope to be helpful to you.
1. Check the libcgroup library: rpm-Q libcgroup. If not, install-- > rpm-ivh libcgroup-0.40.rc1-23.el6.x86_64.rpm, then mount it.
Vi / etc/fstab
Add the last line: none / sys/fs/cgroup cgroup defaults 0 0
Then restart: shutdown-r now
two。 Install docker:rpm-ivh docker-engine-1.7.1-1.el6.x86_64.rpm
If an error is reported (the error content is as follows): error: Failed dependencies:
Xz is needed by docker-engine-1.7.1-1.el6.x86_64
Description of lack of dependency, installation dependency: rpm-ivh xz-4.999.9-0.5.beta.20091007git.el6.x86_64.rpm
After running rpm-ivh docker-engine-1.7.1-1.el6.x86_64.rpm, the installation is successful
Note: depending on the download address http://rpmfind.net/linux/rpm2html/search.php
Docker download address https://yum.dockerproject.org/repo/main/centos/6/Packages/
The use of docker
1. Search for available docker images
Docker search httpd
Docker search tutorial
You can also use the website to search
2. Download the container image
On docker's image index website, images are stored according to the user name / image name.
Docker pull learn/tutorial
3. Hello world, run the container
Docker run learn/tutorial echo "hello word"
4. Add functions to the container: install ping programs in the learn/tutorial image
Docker run learn/tutorial apt-get install-y ping
5. Save the modification and testing of the container
Use the docker ps-l command to get the id of the container after installing the ping command
The save command is docker commit id newname, run docker commit 67f88 learn/ping
Usually, you do not need to copy the complete id. After executing the docker commit command, you will return the id number of the new version of the image, such as f0645a51a88f9c5063e96b5a7b160bdadfaf13ed22fe26124ee8497e3af47e84 in the figure.
Run the new mirror docker run lean/ping ping www.baidu.com
6. Check the running image
Use the docker ps command to view a list of all running containers
Docker inspect ca5cf5 view container details
7. Publish an image to https://hub.docker.com/
You need to have your own hub.docker account first.
Play tag:docker tag learn/ping binggongzi/publiclearn for the image
Then push goes up: docker push binggongzi/publiclearn
Note: the docker commit 67f88 learn/ping:14.4 colon is followed by a label
On how to install docker1.7.1 offline in centos6.7 to share here, I hope the above content can be of some help to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.