In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "centos6.5 how to install docker", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "centos6.5 how to install docker" bar!
Tip:
64-bit operating system, kernel version is at least 3.10.
Pre-upgrade system image: CentOS 6.564-bit
Kernel version: 2.6.32-431.23.3.el6_x86_64
1. Import public key
Rpm-- import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
2. Install elrepo into CentOS with kernel 2.6.32
Rpm-Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
3. Install the long-term supported version of kernel-lt (long term support)
Yum-enablerepo=elrepo-kernel install kernel-lt-y
4. Install docker
You need to install the yum source first.
Yum-y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Re-execution
Yum install docker-io
Note:
1) if you use the elrepo source directly through yum, the speed will be slow (the source is abroad).
It is recommended to install kernel-lt with rpm:
Visit http://elrepo.org/linux/kernel/el6/x86_64/RPMS/ to download the corresponding rpm package, and install it through rpm:
Rpm-ivh kernel-lt-3.10.93-1.el6.elrepo.x86_64.rpm
2) you will be prompted to upgrade the kernel in Centos 6.5. in addition, there is an error.
Docker: relocation error: docker: symbol dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with link time reference
Perform yum upgrade device-mapper-libs to upgrade
4. Edit the grub.conf file and modify the Grub boot sequence
Vim / etc/grub.conf
Confirm the location of the installed new kernel, and adjust the value of default to the order of the new kernel. For example, in this upgrade case, the newly installed kernel location is 0, so change default to 0, save and exit, and reboot restart the server.
5. Check the kernel after restarting the system
6. Test after the kernel upgrade is completed
After the upgrade is completed, you can install docker to observe the use:
Yum install-y docker-io
Service docker start
Docker pull centos:6
Docker run-it centos:6 / bin/bash
Thank you for reading, the above is the content of "how to install docker in centos6.5". After the study of this article, I believe you have a deeper understanding of how to install docker in centos6.5, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.