Installing Docker under Linux

Source: Internet
Author: User

Preface:

Because you previously installed it directly on your Mac using Homebrew's package management, using Brew install Docker, this is a simple method, but the recent attempt to install under Linux took some time, mostly starting the Docker times exception Failed To start docker.service:Unit not found. here are the steps to install yourself.

Preparation before installation:
    • View Linux kernel information and operating system information first

    1.       Linux version and kernel information available uname-a, The kernel is a 64-bit version of 3.10.0 

    2.       Cat/proc/version//view current operating system version information

    3.       cat/etc/redhat-release //view version current operating system release information

    4.       The Linux kernel is 3.10.0 operating system release version Red Hat 7.2

    • The official website was written from read Hat 7 to support the installation
      Docker is supported on Red Hat Enterprise Linux 7.
      Docker requires a 64-bit OS and version 3.10 or higher of the Linux kernel.

      Official website address https://docs.docker.com/install/linux/docker-ee/rhel/#prerequisites
      • So the environment is ready to be fully satisfied
Installation:
  1. Download the RPM package to install Libcgroup (this package provides a range of tools and library files for controlling and managing control groups)
  2. Libcgroup Package: ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6.5/x86_64/updates/fastbugs/ libcgroup-0.40.rc1-6.el6_5.1.x86_64.rpm
  3. Download Libcgroup RPM Package: wget ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6.5/x86_64/updates/fastbugs/ libcgroup-0.40.rc1-6.el6_5.1.x86_64.rpm
  4. RPM Package for installing Libcgroup: RPM-IVH libcgroup-0.40.rc1-6.el6_5.1.x86_64.rpm
  5. Update the Yum source (there may not be Docker in the current yum source): Download the Epel RPM package: wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
  6. To install the Epel RPM package:rpm -ivh epel-release-latest-6.noarch.rpm
  7. Installing Docker:yum Install Docker-io

    • Services to start Docker after installation: Service Docker start returns unit not found as shown

    • After the query is said to be in the directory/usr/lib/systemd/system less a docker.socket file, but the installation of Docker is 1.13.1 version does not need this file;
    • Helpless under, after reinstalling, still using the Yum install Docker-io command;
    • At this point the miracle appeared, and once again using service Docker start, the boot was successful;

Installing Docker under Linux

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.