Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and use of docker under CentOS6.5

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains the "installation and use of docker under CentOS6.5", the content of the explanation 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 "the installation and use of docker under CentOS6.5" bar!

The docker container was first fully supported by RHEL from the recent CentOS 7.0. it is officially stated that it can only run on 64-bit architecture platforms, with kernel versions of 2.6.32-431 and above (i.e. > = CentOS 6.5, the actual prompt for running docker is 3.8.0 and above).

It should be noted that the installation of CentOS 6.5 is a little different from 7.0. the installation package of docker on CentOS-6 is called docker-io and comes from the Fedora epel library, this repository maintains a large number of software that is not included in the distribution, so first install EPEL, while the docker of CentOS-7 is directly included in the Extras repository of the official mirror source (enable=1 is enabled in the [extras] section under CentOS-Base.repo). The premise is that they all need to be connected to the Internet, and the specific installation process is as follows.

1. Disable selinux

# vi / etc/selinux/configSELINUX=disabled...

2. Install Fedora EPEL

# yum install epel-release-6-8.noarch// or yum-y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

3. Check the kernel version

# uname-r2.6.32-431.el6.x86_64# cat / etc/redhat-release CentOS release 6.5 (Final)

Seeing this minimum kernel version, it actually doesn't have much of a problem, and you can upgrade to version 3.10.x.

4. Install docker-io

# yum install docker-ioDependencies Resolved= Package Arch Version Repository Size=Installing: docker-io x86 1.el6 epel 64 1.1.2-1.el6 epel 4.5 MInstalling for dependencies: lua-alt-getopt noarch 0.7.0-1.el6 epel 6. 9 k lua-filesystem x86'64 1.4.2-1.el6 epel 24 k lua-lxc x86'64 1.0.6-1.el6 epel 15 k lxc x86'64 1.0.6-1.el6 epel 120k lxc-libs x8634 1.0.6-1.el6 epel 248kTransaction Summary=Install 6 Package (s)

5. Start the trial run

# service docker start// or # docker-d

6. Exception

/ usr/bin/docker: relocation error: / usr/bin/docker: symbol dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with link time reference

Please upgrade

Yum install device-mapper-event-libs thank you for reading, the above is the content of "installation and use of docker under CentOS6.5". After the study of this article, I believe you have a deeper understanding of the installation and use of docker under 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: 243

*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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report