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:
-
Linux version and kernel information available uname-a, The kernel is a 64-bit version of 3.10.0
-
Cat/proc/version//view current operating system version information
-
cat/etc/redhat-release //view version current operating system release information
-
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:
- Download the RPM package to install Libcgroup (this package provides a range of tools and library files for controlling and managing control groups)
- 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
- 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
- RPM Package for installing Libcgroup: RPM-IVH libcgroup-0.40.rc1-6.el6_5.1.x86_64.rpm
- 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
- To install the Epel RPM package:
rpm -ivh epel-release-latest-6.noarch.rpm
- 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