码迷,mamicode.com
首页 > 其他好文 > 详细

Docker简介安装

时间:2015-11-30 02:27:06      阅读:331      评论:0      收藏:0      [点我收藏+]

标签:docker

1、Ubuntu下的安装:

apt-get update && apt-get install docker.io
如果想安装最新的,首先确认apt可以支持https:
apt-get update && apt-get install apt-transport-https
然后倒入Docker源;


2、Red Hat下的安装:

RHEL7:
subscription-manager repos --enable=rhel-7-server-extras-rpms (启动附加频道)
yum install docker

CentOS7:
yum install docker

RHEL6:
yum install docker-io


3、启动docker
systemctl enable docker
systemctl start docker


查看docker的信息:

[root@bogon ~]# docker info
Containers: 0
Images: 0
Storage Driver: devicemapper
 Pool Name: docker-253:1-8579499-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 1.821 GB
 Data Space Total: 107.4 GB
 Data Space Available: 3.701 GB
 Metadata Space Used: 1.479 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.146 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 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
Logging Driver: json-file
Kernel Version: 3.10.0-229.20.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
CPUs: 1
Total Memory: 741.3 MiB
Name: bogon
ID: LIX7:K5XQ:RUE2:T5DG:G476:HW2U:3NYN:VKZO:DPQI:Z3FC:Q7KN:RSVC
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

在OSX和Windows下的安装:
安装Boot2Docker工具

本文出自 “Linuxer” 博客,请务必保留此出处http://x180x.blog.51cto.com/10473748/1717977

Docker简介安装

标签:docker

原文地址:http://x180x.blog.51cto.com/10473748/1717977

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!