简介一个类似于虚拟机的轻量级容器。
官方网址https://www.docker.com
官方有一个在线模拟环境:
https://www.docker.com/tryit/安装从官网介绍来看,它支持的操作系统非常多,基本许多我没见过的。
我的测试环境是Ubuntu Kylin 14.04需求推荐使用64-bit,kernel 最低3.10,可以使用 uname-r查看
我用的Ubun...
分类:
系统相关 时间:
2015-06-10 15:47:49
阅读次数:
187
想搭建一个私有的Docker仓库,查看了各种资料,大多是使用Nginx做代理,可是由于对于Nginx不熟悉,各种关于权限认证的问题,折腾了两天也没有搞定,后来无意在网上看到一篇使用已有镜像的方法,终于搞定了,原文参考:http://cloud.51cto.com/art/201412/458680_all.htm
测试环境
192.168.40.71 CoreOS 仓库服务器
...
分类:
其他好文 时间:
2015-06-09 23:45:39
阅读次数:
207
在linux下我们可以在docker中新建容器,然后通过端口转发直接访问到容器。但是在mac下中间又通过了
一层虚拟机,所以端口转发就需要在多做一点。1 把本地端口和虚拟机对应起来:可以通过命令来做:#VBoxManage modifyvm "boot2docker-vm" --natpf1 "containerssh,tcp,,2222,,2222"也可以通过手动添加:
点击上图端口转发即...
分类:
系统相关 时间:
2015-06-09 20:10:07
阅读次数:
271
组合模式:
将对象组合成树形结构来表示部分与整体的关系。组合模式让客户能将单个对象和组合对象统一对待。
Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objec...
分类:
其他好文 时间:
2015-06-09 20:04:26
阅读次数:
136
安装必备软件yum -y install iptables iptables-services net-tools vim wget安装Dockeryum -y install docker下载centos镜像docker pull centos查看centos 镜像docker images ce...
分类:
其他好文 时间:
2015-06-09 19:14:00
阅读次数:
137
Docker 在Centos 6.5 X64下安装下载epelwgethttp://ftp.sjtu.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm安装epelrpm -ivh epel-release-6-8.noarch.rpm安装do...
分类:
其他好文 时间:
2015-06-09 19:13:10
阅读次数:
132
Docker 在Centos 6.5 X64下安装
下载epel
wget http://ftp.sjtu.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
安装epel
rpm -ivh epel-release-6-8.noarch.rpm
安装docker-io
yum -y install docker-io
...
分类:
其他好文 时间:
2015-06-09 17:16:29
阅读次数:
118
最小化安装centos后发现git docker等命令不能自动补全参数,而在Desktop安装环境下是可以自动补全的.要解决这个问题需要安装一个小软件:bash-completionsudo yum install bash-completion
分类:
其他好文 时间:
2015-06-09 16:37:57
阅读次数:
110
之前介绍过如何使用ovs的qos技术对docker容器做网络资源限制,本次介绍如何使用docker本身的参数进行cpu与内存资源限制。默认docker本身提供在创建容器的时候,进行内存、swap、cpu限制,但使用起来就得有些技巧需要注意,具体如下:1、内存限制默认docker内存限制可以使用-m参..
分类:
其他好文 时间:
2015-06-09 14:02:43
阅读次数:
1176
1.自动下载并且创建容器Now verify that the installation has worked by downloading the ubuntu image and launching a container.sudo docker run -i -t ubuntu /bin/ba...
分类:
其他好文 时间:
2015-06-09 11:44:19
阅读次数:
104