标签:docker
docker安装
简介
docker:一个能把开发的应用程序自动部署到容器的开源引擎。由docker公司(前dotcloud)开发,基于apache2.0开源协议
docker的作用:
1.加速本地开发和构建流程
2.能让独立服务或应用程序在不同的环境中得到相同的运行结果。
3.为开发,测试提供一个轻量级的独立沙盒环境
4.提过一个多用户的平台即服务基础设施(PAAS)
5.高性能,超大规模的宿主机部署
centos7下安装docker
检查条件
1.内核
uname -a
Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
2.device mapper
[root@localhost subsystem]# grep device-mapper /proc/devices
253 device-mapper
2.如果没有deveice mapper。
yum -y install device-mapper
加载内核模块
modprobe dm_mod
3.安装docker
centos7中docker软件已经包含在了默认的centos-extras软件源中
yum -y install docker
4.启动docker守护进程
systemctl start docker
systemctl enable docker
5.检查docker是否安装
[root@localhost ~]# docker info
Containers: 0
Images: 0
Storage Driver: devicemapper
Pool Name: docker-253:1-67207226-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 307.2 MB
Data Space Total: 107.4 GB
Data Space Available: 15.55 GB
Metadata Space Used: 729.1 kB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.147 GB
Udev Sync Supported: true
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.93-RHEL7 (2015-01-28)
Execution Driver: native-0.2
Kernel Version: 3.10.0-123.el7.x86_64
Operating System: CentOS Linux 7 (Core)
CPUs: 1
Total Memory: 987.2 MiB
Name: localhost.localdomain
ID: 65PY:VMNH:YCJW:6X5A:LHV2:ZZJR:YVO3:VCXH:BOMZ:KLL6:3ZZL:RBD7
本文出自 “不抛弃!不放弃” 博客,请务必保留此出处http://6437769.blog.51cto.com/6427769/1654340
标签:docker
原文地址:http://6437769.blog.51cto.com/6427769/1654340