Docker Linux Offline manual installation method

Source: Internet
Author: User

Docker generally in Linux is to take the online mode installation, but the LAN server host can not connect the external network, need to install offline;


Announcement ***************************************

The following content is purely personal writing, do not use for commercial purposes, reproduced please indicate the source, there are errors and questions please leave a message or private messages, thank you

########################## #仅供参考, if copyright is involved, please direct messages ###########################


Get ready:

1. Installed Linux (take Centos7 as an example)

2. Offline installation package:

①, docker-engine-1.7.1-1.el7.centos.x86_64.rpm (http://www.oschina.net/news/64267/docker-1-7-1-final can be downloaded from the link below, Centos7 corresponding DOWNLOAD link: https://get.docker.com/rpm/1.7.1/centos-7/RPMS/x86_64/docker-engine-1.7.1-1.el7.centos.x86_64.rpm)

②, dependent component cgroup:

libcgroup-0.41-8.el7.x86_64.rpm

libcgroup-devel-0.41-8.el7.x86_64.rpm

libcgroup-pam-0.41-8.el7.x86_64.rpm

libcgroup-tools-0.41-8.el7.x86_64.rpm (download from the link below or refer to the attachment http://mirrors.163.com/centos/7/os/x86_64/Packages/)


1. WINSCP log in to the Linux host with the root user and copy Docker and Libcgroup to the/tmp directory

2, Xshell login to the Linux host, enter the TMP directory, display the current file:

$ cd/tmp/$ lsdocker-engine-1.7.1-1.el7.centos.x86_64.rpm libcgroup-0.41-8.el7.x86_64.rpm libcgroup-devel-0.41-8.el7.x86_64.rpm libcgroup-pam-0.41-8.el7.x86_64.rpm libcgroup-tools-0.41-8.el7.x86_64.rpm

3. Install component dependencies First, temporarily switch root user

$ SUPASSWORD: # RPM -IVH LIBCGROUP-*WARNING: LIBCGROUP-0.41-8.EL7.X86_64.RPM:  header v3 rsa/sha256 signature, key id f4a80eb5: nokeypreparing ...                            ################################# [100%]updating /  installing...   1:libcgroup-0.41-8.el7              ################################# [ 25%]   2: libcgroup-devel-0.41-8.el7       ################################# [  50%]   3:libcgroup-pam-0.41-8.el7         ## ############################### [ 75%]   4:libcgroup-tools-0.41-8.el7        ################################# [100%] 

4. Installing the Docker main program

# RPM-IVH docker-engine-1.7.1-1.el7.centos.x86_64.rpm Preparing ... #############################   # # # # [100%]updating/installing ... 1:docker-engine-1.7.1-1.el7.centos ################################# [100%]

5. Start the Docker service and view the Docker version

# service Docker Startstarting Docker (via Systemctl): [OK]# docker-vdocker version 1.7.1, Build 786b29d

Finally, remember to exit the root user!


PS: ISO One-click installation is also available, please refer to http://wangn.blog.51cto.com/10410653/1716469!

2015-11-24

This article is from the "Wang Xiaofu Diary" blog, make sure to keep this source http://wangn.blog.51cto.com/10410653/1716443

Docker Linux Offline manual installation method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.