Installing Docker # 0 on a virtual machine CentOS 7: Check Prerequisites: There are not many prerequisites for installing Docker in the Red Hat and Red Hat series of Linux distributions.
# # # 1. The kernel uses the ' uname ' command to confirm that a kernel version of 3.8 or higher is installed. ' $ Uname-a ' # # #2: Check device Mapper We use device Mapper as the storage driver for Docker, which provides storage capabilities for Docker. Device Mapper should be installed on Red Hat Enterprise Linux, CentOS 6, or Fedora Core 19 and later hosts.
* First method Check device Mapper: Use command: ' $ ls-l/sys/class/misc/device-mapper/'* The second method checks device Mapper:Check Device Mapper in Red Hat's proc file, using the following command:' $ sudo grep device-mapper/proc/devices 'My machine, found the device-mapper.
If device Mapper is not detected, we can try to install the Device-mapper package. Use the command: ' $ sudo yum install-y device-mapper '
After the installation is complete, you will also need to load the Dm_mode kernel module. Using the command: ' $ sudo modprobe dm_mod ' module is loaded and we should be able to find the/sys/class/misc/device-mapper entry.
# #一: Install docker## #1: Enter the CentOS 7 operating system, input command: ' $ yum is Docker ' through the Yum command, complete the installation. [Yum (Full name Yellow dog Updater, Modified) is a shell front-end package manager in Fedora and Redhat and CentOS. Based on RPM package management, the ability to automatically download RPM packages from specified servers and install them automatically handles dependency relationships and installs all dependent packages at once, without the hassle of downloading and installing them over and over again. During the installation process, you may need to confirm the information and enter Y to automatically perform the next installation process. Complete the installation:
complete!
# # #2: Verify that the installation was successful, enter the command: ' $ docker Version ' outputs the release number of Docker, stating that the installation was successful. The Docker version number I installed was 1.10.3. Did you notice the last word? Cannot connect to the Docker daemon. Is the Docker daemon running on this host? Unable to connect to Docker daemon. Do you want to run Docker daemon on this host? At this point, we need to use the command to start the Docker service. # # #3: Start Docker Service: ' $ service docker start ' so that explains the Docker service, started up, and now you can start using Docker. # #二: Using Docker
# # #零: Common commands for Docker: ' Docker info ': View Docker info ' docker images ': View current mirror ' docker search Tutorial ': Search for a mirror named "Tutorial"
CentOS 7 Installation Docker