Docker Machine

我要开发同款
匿名用户2015年02月27日
38阅读
所属分类Google Go、Docker扩展、云计算、Docker 扩展
授权协议Apache

作品详情

DockerMachine是一个简化Docker安装的命令行工具,通过一个简单的命令行即可在相应的平台上安装Docker,比如VirtualBox、DigitalOcean、MicrosoftAzure。

使用过程:

$ docker-machine create -d virtualbox devINFO[0000] Creating SSH key...INFO[0000] Creating VirtualBox VM...INFO[0007] Starting VirtualBox VM...INFO[0007] Waiting for VM to start...INFO[0041] "dev" has been created and is now the active machine.INFO[0041] To point your Docker client at it, run this in your shell: $(docker-machine env dev)$ docker-machine lsNAME   ACTIVE   DRIVER       STATE     URL                         SWARMdev    *        virtualbox   Running   tcp://192.168.99.127:2376$ $(docker-machine env dev)$ docker run busybox echo hello worldUnable to find image 'busybox:latest' locally511136ea3c5a: Pull completedf7546f9f060: Pull completeea13149945cb: Pull complete4986bf8c1536: Pull completehello world$ docker-machine create -d digitalocean --digitalocean-access-token=secret stagingINFO[0000] Creating SSH key...INFO[0001] Creating Digital Ocean droplet...INFO[0002] Waiting for SSH...INFO[0070] Configuring Machine...INFO[0109] "staging" has been created and is now the active machine.INFO[0109] To point your Docker client at it, run this in your shell: $(docker-machine env staging)$ docker-machine lsNAME      ACTIVE   DRIVER         STATE     URL                          SWARMdev                virtualbox     Running   tcp://192.168.99.127:2376staging   *        digitalocean   Running   tcp://104.236.253.181:2376
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论