Giter Site home page Giter Site logo

docker-machine-ucloud's Introduction

docker-machine-ucloud

docker-machine-ucloud is a plugin of docker-machine for UCloud. It requires Docker Machine's version is greater than v0.5.0-rc1.

中文文档

Install and Run

You could install run docker-machine-driver-ucloud as following steps.

First, docker-machine v0.5.2 is required, documentation for how to install docker-machine is available here.

or you can install docker-machine from source code by running these commands

$ go get github.com/docker/machine
$ cd $GOPATH/src/github.com/docker/machine
$ make build

Then, you could install docker-machine-ucloud driver in the $GOPATH and add $GOPATH/bin to the $PATH env.

go get github.com/ucloud/docker-machine-ucloud
cd $GOPATH/src/github.com/ucloud/docker-machine-ucloud
make
make install

Now, you can run docker-machine create --help -d ucloud to see how to create a UCloud machine. Public and private keys of UCloud API are needed to create machine. Both options and environment variable are available to set that:

$ export UCLOUD_PUBLIC_KEY=<public-key-of-ucloud-api>
$ export UCLOUD_PRIVATE_KEY=<private-key-of-ucloud-api>
$ docker-machine create -d ucloud <machine-name>

or run

$ docker-machine create -d ucloud --ucloud-public-key=<public-key> --ucloud-private-key=<private-key> <machine-name>

for example,

$ ./docker-machine create -d ucloud ucloud-machine
Running pre-create checks...
Creating machine...
Waiting for machine to be running, this may take a few minutes...
Machine is running, waiting for SSH to be available...
Detecting operating system of created instance...
Provisioning created instance...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
To see how to connect Docker to this machine, run: docker-machine_darwin-amd64 env ucloud-machine

After run this command, a machine with name ucloud-machine is created.

$ ./docker-machine ls
NAME             ACTIVE   DRIVER   STATE     URL                        SWARM
ucloud-machine   -        ucloud   Running   tcp://123.59.66.163:2376

docker-machine-ucloud's People

Contributors

xiaohui avatar yimeng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.