Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ To install Docker under CentOS7     - When the master key encounter NULL (Database)

- How to use the ps command to monitor progress in the implementation of Linux commands (Linux)

- Efficient running Linux virtual machine Six Tips (Linux)

- Binder began to talk about inter-process communication mechanism from Android AIDL (Programming)

- To achieve Linux Security (Linux)

- Linux Change ssh port and disable remote root login at (Linux)

- How to enhance the Nagios server security (Linux)

- Linux Disk and File Management (Linux)

- Java reflection summary (Programming)

- Hadoop - Task Scheduling System Comparison (Server)

- Linux RPM default installation path (Linux)

- Vim Common Command Summary (Linux)

- Spark parquet merge metadata problem (Server)

- System Security: Build Linux with LIDS steel castle (Linux)

- Writing Better Bash build script 8 (Programming)

- CentOS 5.5 kernel upgrade installation iftop (Linux)

- Why HBase need to build SQL engine layer (Database)

- Nginx server security configuration (Server)

- Change the kernel boot sequence after CentOS 7 kernel upgrade (Linux)

- Sudo and Root Account in Ubuntu related (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:      
 
- Ubuntu users how to install the latest Nvidia graphics drivers (Linux)
- CentOS5 installation Nodejs (Linux)
- The multiplexed signal driving IO (Programming)
- Android design patterns - state mode (Programming)
- imp / exp Oracle Database import and export commands (Database)
- Copy files between two Linux hosts (Linux)
- Bash variable expansion modifier (Programming)
- TOAD connect DB2 error SQL1460N solve (Database)
- Writing Better Bash build script 8 (Programming)
- MySQL binlog group to submit XA (two-phase commit) (Database)
- Easy to install Ubuntu 15.04 and Ubuntu 15.04 GNOME on Wayland trial (Linux)
- Disk storage structure and file recovery experiment (FAT file system) (Linux)
- Text analysis tools - awk (Linux)
- Linux Defensive / mitigate DDOS attacks (Linux)
- Linux development environment to build and use the directory structure and file --Linux (Linux)
- Linux configuration startup mount: fstab file (Linux)
- Android using shape drawable material production (Programming)
- Use Nginx as a load balancer (Server)
- Experts teach you safety precautions Linux Sniffer (Linux)
- Manager Docker browser (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.