Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ To install Docker under CentOS7     - Cobbler remotely install CentOS system (Linux)

- CentOS 7.0 Close firewall is enabled by default iptables firewall (Linux)

- Build and verify MongoDB3.0.7 version (shard + replica) Cluster (Database)

- Nginx introduced Dynamic Module Architecture (Server)

- Understanding Java classes (Programming)

- tespeed - test speed of Python tools (Linux)

- Android thread mechanism --AsyncTask (Programming)

- Grub2: Save Your bootloader (Linux)

- Linux ldconfig command (Linux)

- Ubuntu compiler installation R Full Record (Linux)

- Ubuntu 14.04 Fixed update information is outdated error (Linux)

- Linux System Getting Started Learning: Linux how to install 7zip (Linux)

- Java in the inverter and covariance (Programming)

- RedHat6.4 installation tutorial --- Minimal Edition (Linux)

- httpd-2.4 feature (Server)

- Use a soft Raid play multiple SSD hard drive performance and enhance data security (Linux)

- Oracle Sql Loader tool has shown signs (Database)

- Memcached and Redis (Linux)

- How to manage your to-do list with the Go For It on Ubuntu (Linux)

- Linux Monitoring Command (Linux)

 
         
  To install Docker under CentOS7
     
  Add Date : 2018-11-21      
         
       
         
  Docker installed in CentOS 7 of

First, check the prerequisite

1. Kernel

Check whether the version of the kernel installed version 3.8 or higher

[Root @ localhost ~] # uname -a
Linux localhost.localdomain 3.10.0-123.13.2.el7.x86_64 # 1 SMP Thu Dec 18 14:09:13 UTC 2014 x86_64 x86_64 x86_64 GNU / Linux

 2. Check Device Mapper

[Root @ localhost ~] # ls -l / sys / class / misc / device-mapper /
The total amount of 0
-r - r -. r-- 1 root root 4096 12 Yue 28 17:18 dev
drwxr-xr-x. 2 root root 0 12 Yue 28 17:14 power
lrwxrwxrwx 1 root root 0 12 Yue 28 17:18 subsystem -.> ../../../../class/misc
-rw-r - r-- 1 root root 4096 12 Yue 28 17:13 uevent.

Or / proc / device file to check for device-mapper entry

[Root @ localhost ~] # grep device-mapper / proc / devices
253 device-mapper

Second, the installation Docker

[Root @ localhost ~] # yum -y install docker

It is loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * Base: mirrors.btte.net
 * Epel: ftp.sjtu.edu.cn
 * Extras: mirrors.btte.net
 * Updates: mirrors.neusoft.edu.cn
Dependencies are resolved
-> Checking for affairs
---> Packages will be installed docker.x86_64.0.1.3.2-4.el7.centos
-> Complete resolve dependencies

Resolve dependencies

================================================== =========================================
 Package size version of the source architecture
================================================== =========================================
Installing:
 docker x86_64 1.3.2-4.el7.centos extras 5.6 M

Transaction Summary
================================================== =========================================
1 installation package

Total downloads: 5.6 M
Installed Size: 24 M
Downloading packages:
docker-1.3.2-4.el7.centos.x86_64.rpm | 5.6 MB 00:00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing: docker-1.3.2-4.el7.centos.x86_64 1/1
  Verification: docker-1.3.2-4.el7.centos.x86_64 1/1

Installed:
  docker.x86_64 0: 1.3.2-4.el7.centos

complete!

Third, the process starts Docker

[Root @ localhost ~] # systemctl start docker

If you want to start Docker service automatically at boot time, run the following command

[Root @ localhost ~] # systemctl enable docker
ln -s '/usr/lib/systemd/system/docker.service' '/etc/systemd/system/multi-user.target.wants/docker.service'

View Docker is running

[Root @ localhost ~] # docker info
Containers: 0
Images: 0
Storage Driver: devicemapper
 Pool Name: docker-253: 1-614613-pool
 Pool Blocksize: 65.54 kB
 Data file: / var / lib / docker / devicemapper / devicemapper / data
 Metadata file: / var / lib / docker / devicemapper / devicemapper / metadata
 Data Space Used: 307.2 MB
 Data Space Total: 107.4 GB
 Metadata Space Used: 725 kB
 Metadata Space Total: 2.147 GB
 Library Version: 1.02.84-RHEL7 (2014-03-26)
Execution Driver: native-0.2
Kernel Version: 3.10.0-123.13.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
     
         
       
         
  More:      
 
- SQL statement to repair SQL Server database (Database)
- Nginx high concurrency optimization ideas (Server)
- Package the Python script file into an executable file (Programming)
- Install the open source database PostgreSQL 9.4 and phpMyAdmin on Ubuntu (Database)
- CentOS Nginx achieve 3 virtual machine load balancing (Server)
- Android gets the global process information and the memory used by the process (Programming)
- Linux basic articles of the boot process (Linux)
- Using open source software to build XWiki Wiki system installed within the company (Linux)
- Linux memory management (Linux)
- Linux Shell Understanding and Learning (Linux)
- CentOS 6.4 under PXE + Kickstart unattended operating system installation (Programming)
- Source install Python3.4 on CentOS (Linux)
- VMware virtual machine operating system log Error in the RPC receive loop resolve (Linux)
- Node.js v4.0.0 installation configuration on Ubuntu 14.04 / 15.04 (Linux)
- Use netcat [nc] command on Linux and Unix port scan (Server)
- Linux shell in back quotes (`) Application (Linux)
- C ++ in the elimination Wunused (Programming)
- Nginx supports user multi-threaded downloads and resume broken (Server)
- Experience RHEL7 new features (Linux)
- 64-bit Ubuntu 15.10 How to compile the latest version of the 32 Wine 1.7.53 (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.