docker Getting Started - Installation Guide

A, docker introduction
1: docker's official website www.docker.com
2:github  https://github.com/docker/docker.github.io
3: Open source vessel engine that allows developers to package applications and dependent libraries, and post it to any popular linux distributions, written by transplanted easily go language, released under apache2.0 protocol, based on linux kernel, in order to in the win running you need the help of a vm (virtual machine) to achieve, since 2013, the rapid development in recent years, docker from 1.13x beginning version into community Edition and enterprise Edition ce ee, and based on the timeline of years form, current latest stable version is 17.09 reference http://blog.csdn.net/chenhaifeng2016/article/details/68062414
4: docker Core Concepts
Mirror, is a read-only template, similar to the iso file to install the system used, we complete the deployment of various applications by mirroring.
Container, mirroring similar operating system, and the container similar to the virtual machine itself. It can be started, start, stop, delete, etc., of each container are isolated from each other.
Warehouse, storage place a mirror, storage warehouse is divided into public and private warehouses. The biggest public warehouse Docker hub (hub.docker.com), domestic public warehouse (dockerpool.com)
 
 
Two, docker and virtualization Compared to traditional

 

 

 
Three, docker advantage
 
 
1: very fast start, second-level implementation
2: high resource utilization, a high-configuration server may run thousands of containers docker
3: faster delivery and deployment, create and configure once, run anywhere
4: kernel level virtualization, no additional hypevisor support, have higher performance and efficiency
5: Easy migration platform dependence is not strong
 
 
Fourth, start the installation docker
1: YUM source installation, with the installation yum curl to download a source of docker
[root@localhost ~]#  curl https://download.docker.com/linux/centos/docker-ce.repo -o  /etc/yum.repos.d/docker.repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2424  100  2424    0     0   1532      0  0:00:01  0:00:01 --:--:--  1534
 
[root@localhost ~]# ls /etc/yum.repos.d/
CentOS-Base.repo  CentOS-Debuginfo.repo  CentOS-Sources.repo  CentOS-Vault.repo  docker.repo
 
 
2:下载好docker的yum源后,直接Yum安装
[root@localhost ~]#  yum install -y docker-ce
 
3:启动docker
 [root@localhost ~]#  systemctl start docker
 
说明:安装完成后出现以下错误
Redirecting to /bin/systemctl start  docker.service
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
 
解决办法:yum  update
 
4:ps查看docker进程是否启动起来
[root@localhost docker]# ps aux|grep docker
root      58532  2.2  3.2 591996 60028 ?        Ssl  01:17   0:00 /usr/bin/dockerd
root      58536  0.3  1.1 289836 22140 ?        Ssl  01:17   0:00 docker-containerd --config /var/run/docker/containerd/containerd.toml
root      58666  0.0  0.0 112724   984 pts/0    R+   01:17   0:00 grep --color=auto docker
 
 
rpm包安装方式
##yum源下载过程可能速度比较慢,也可以直接下载rpm包
[root@localhost ~]# https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
 
下载完,上传到linux下,也需要用yum安装,可以自动解决依赖关系
 [root@localhost ~]# yum install -y 【docker的RPM包】
 
启动docker
 [root@localhost ~]#systemctl start docker

Guess you like

Origin www.cnblogs.com/douyi/p/11573679.html