docker启动时默认使用172.17.x.x作为容器的ip地址,可以通过以下方法自定义该网段:sudo service docker stop通过命令route -n查看docker0是否存在,若存在需先删除,sudo ip link del docker0sudo docker --bip="1...
分类:
其他好文 时间:
2014-11-05 19:18:30
阅读次数:
3633
car = $car; } public function run(){ $this->car->run(); echo '高速公路上行驶'; }}class street extends road{ public $car; public function __construct($car...
分类:
Web程序 时间:
2014-11-05 12:33:18
阅读次数:
223
今天,daimajia推荐使用docker,其实一直都听过docker,但没用过,今天参考几篇文档把docker搞定了。果然起的速度比一般虚拟机快
我的电脑是ubuntu14.04 安装的话用包源进行安装
$ sudo apt-get install apt-transport-https
$ sudo apt-key adv --keyserver hkp://keyserver.u...
分类:
系统相关 时间:
2014-11-04 19:46:42
阅读次数:
733
enough----------------------------------------------------------------------------------Working with Containers-In thelast section of the Docker User ...
分类:
其他好文 时间:
2014-11-04 18:59:22
阅读次数:
186
Working with Docker Images##orignal is always the bestIn theintroductionwe've discovered that Docker images are the basis of containers. In thepreviou...
分类:
其他好文 时间:
2014-11-04 17:17:43
阅读次数:
292
系统环境:Ubuntu 8.04xen-3.3.1错误提示:$xend startDevice “eth0” does not existifdown: interface eth0 not configured具体场景:使用xen桥接的模式下启动xend时候出现了错误,说eth0找不到。运行ifc...
分类:
其他好文 时间:
2014-11-04 12:39:02
阅读次数:
258
swift 优势:1、简洁(不是说语法体系简洁,而是书写)2、结合playground,做到真正意义上的所见即所得3、便于扩展(能桥接ObjC)4、还有直接支持闭包。你想在哪儿定义函数就在哪儿定义。5、而且既能面向过程,又能面向对象,还能来个函数式编程风格当然,因为之前的项目费代码一大堆。我接手这个...
分类:
编程语言 时间:
2014-11-04 12:34:51
阅读次数:
191
--------------------------------------------------------------------------original url http://tech.uc.cn/?p=2726最近接触PAAS相关的知识,在研发过程中开始使用Docker搭建了自己完整的...
分类:
其他好文 时间:
2014-11-04 12:31:26
阅读次数:
215
网上的方法都转载兼扯蛋。。。一步一个坑。。官网的教程顺序也不对。。坑1. ps:这个命令下载的不是docker。。。这个:sudo apt-get install docker下的是啥我也不知道,于是卸载掉:$ sudo apt-get remove docker && sudo apt-get a...
分类:
其他好文 时间:
2014-11-03 19:19:09
阅读次数:
254
Docker是由PaaS提供商dotCloud在2013年年初创建的一款开源应用引擎,Docker可以自动将任何应用打包成轻量、可移植、自包涵的容器引擎。开发者构建的应用可以一次构建全平台运行,包括本地开发机器,生产环境,虚拟机和云等。Docker基于Go语言开发,代码托管在 Github上,并遵循...
分类:
其他好文 时间:
2014-11-03 12:54:56
阅读次数:
469