CentOS-6.5 Offline installation docker-1.7 tutorial
0. Prepare
This article is a way to install docker-1.7 using the RPM package without a network when simulating the actual line. However, the installation is also the use of Yum, compared directly with the RPM installation, Yum can solve some of the library file dependencies.
# cd/etc/yum.repos.d/
# mkdir Bak
# MV * bak/
1. Install Libcgroup
# CD cgroup/
# yum installlibcgroup-0.40.rc1-16.el6.x86_64.rpm
2. Install LXC
# yum installlua-filesystem-1.4.2-1.el6.x86_64.rpm lua-alt-getopt-0.7.0-1.el6.noarch.rpmlxc-libs-1.0.7-2.el6.x86_ 64.rpm lxc-1.0.7-2.el6.x86_64.rpmlua-lxc-1.0.7-2.el6.x86_64.rpm
3. Install Docker
# yum installdocker-io-1.7.1-2.el6.x86_64.rpm
4. Update Device-mapper-libs
# yum installdevice-mapper-*
5. Set power-on self-starter
# Chkconfig Docker on 6. Check support status
# Lxc-checkconfig 7. Start Cgroup
# service Cgconfig Start
8. Start Docker
9. Test
# Docker Ps–a
10. Common Mistakes
L Start Docker error log:
INFO[0000] +jobserveapi (unix:///var/run/docker.sock)
INFO[0000] Listening forhttp on Unix (/var/run/docker.sock)
INFO[0000] warning:you arerunning Linux kernel version 2.6.32-504.8.1.el6.x86_64, which might be unstablerunning. Please upgrade your kernel to 3.8.0.
Docker:relocationerror:docker:symbol dm_task_get_info_with_deferred_remove, version Base notdefined in file libdevmapper.so.1.02 with link Time reference
Reason: Because the libdevmapper version is too old to update. Perform step 4.
L failed to start Docker, error log is:
[root@csv-bdyx01yum.repos.d]# docker-d &
[1] 7449
[root@csv-bdyx01yum.repos.d]# warn[0000] You are running Linux kernel version2.6.32-431.el6.x86_64, which might to be unstab Le running Docker. Please upgradeyour kernel to 3.10.0.
INFO[0000] [graphdriver]using Prior storage Driver "Devicemapper"
INFO[0000] Listening forhttp on Unix (/var/run/docker.sock)
WARN[0000] Running Modprobebridge Nf_nat failed with message:, Error:exit status 1
WARN[0000] Yourkernel does not support Cgroup memory limit:mountpoint for memory not found
Warn[0000]mountpoint for CPU not found
FATA[0000] errormounting devices cgroup:mountpoint for devices not found
Reason: Cgconfig not started. Perform step 7.