Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ To install Docker under CentOS7     - Linux process management related content (Linux)

- Ubuntu method for single-card dual-IP (Linux)

- Linux directory structure (Linux)

- Initialization and starting process of Linux (Linux)

- 64-bit Windows Server 2012 R2 install Oracle 10g Second Edition (Database)

- To see the Linux device tree (Linux)

- Linux Mint under tty.js Installation Guide (Linux)

- The method of installing software under Ubuntu Linux (Linux)

- Python control multi-process and multi-threaded concurrency (Programming)

- Linux fixes fatal error: x264.h: No such file or directo (Linux)

- To install and deploy Java applications under CentOS 6.5 (Linux)

- Python image processing library (PIL) to install and simple to use (Linux)

- grub boot error resolution examples (Linux)

- Getting Started with Linux system to learn: how to check memory usage of Linux (Linux)

- Vim useful plugin: EasyGrep (Linux)

- How to test your MongoDB application upgrade? (Database)

- Zabbix system email alert Python script (Server)

- CentOS 6.5 / 6.6 modify the default SSH port number (Linux)

- Oracle 11G R2 DataGuard structures (Database)

- C language function pointer and a callback function (Programming)

 
         
  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:      
 
- OpenGL Superb Learning Notes - GLSL language foundation (Programming)
- Binding multiple network cards in Linux using command nmcli (Linux)
- Autojump: an advanced cd command in the Linux file system fast navigation (Linux)
- Ubuntu manually set the DSL broadband connection (Linux)
- Linux Oracle environment variable is invalid Problem Solving (Database)
- BusyBox build root file system (Linux)
- Linux platform host to prevent hacking skills (Linux)
- Windows 7 hard disk to install Ubuntu 15.04 (Linux)
- Articles do not resolve after opening under Ubuntu WordPress setting a fixed link (Server)
- Nginx1.8 version upgrade method AMH4.2 Free manually compile (Server)
- Btrfs file system creation and their characteristics in Linux (Linux)
- Redis-- persistence articles (Database)
- CentOS yum install LAMP (Server)
- Teach you to diagnose problems with strace (Linux)
- Linux character device - automatically creates the device nodes and devices (Linux)
- Linux use logs to troubleshoot (Linux)
- C # how to generate a folder or file automatically rename (Programming)
- Debian 7.8 system installation and configuration process (Linux)
- Linux prohibit non-WHEEL user su command Detail (Linux)
- Kibana use installation (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.