Code Monkey home page Code Monkey logo

docker-machine-linode's Introduction

docker-machine-linode

Linode Driver Plugin for docker-machine.

Requires docker-machine version > v.0.5.0-rc1

Install

First, docker-machine v0.5.0 rc2 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, install docker-machine-linode driver in the $GOPATH and add $GOPATH/bin to the $PATH env.

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

Run

$ docker-machine create -d linode --linode-api-key=<linode-api-key> --linode-root-pass=<linode-root-pass> linode

docker-machine-linode's People

Contributors

eden avatar petehalverson avatar taoh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-machine-linode's Issues

Need kernel tweaks to use this

I was unable to use this project and dug into why.

Dokku has posted a workaround for the custom Linode kernel that keeps Docker from working correctly.

When installing Dokku on a Linode server, you'll likely see an error during Docker installation:

Warning: current kernel is not supported by the linux-image-extra-virtual package. We have no AUFS support. Consider installing the packages linux-image-virtual kernel and linux-image-extra-virtual for AUFS support.

After 10 seconds, the installation will continue as normal.

This warning is the result of Linode using its own kernel, which does not support AUFS, instead of using the kernel supplied by Ubuntu. If you ignore the warning, Docker will fall back to using the DeviceMapper storage backend and Dokku will work normally. However, AUFS is better tested and will perform better.

If you would like to use AUFS, follow the steps below to install Ubuntu's kernel and configure your server to boot it instead of Linode's.

PREPARING YOUR LINODE FOR AUFS
Warning: These steps will delete everything on your Linode.

  1. Open your server's dashboard in the Linode Manager.

  2. Make sure your Linode is using KVM, not Xen, for virtualization.

  3. In the "Rebuild" tab, select "Ubuntu 14.04 LTS", set a root password, and rebuild.

  4. Once your Linode has been created, click "Boot" and wait for it to complete.

  5. SSH into your Linode as root and run the following commands:

    apt-get update
    apt-get -qq upgrade
    apt-get install linux-image-virtual linux-image-extra-virtual
    
  6. When prompted, install Grub onto the first hard drive.

  7. Back in your server's dashboard, click "Edit" on its Configuration Profile

  8. Change the "Kernel" option to "GRUB 2" and save your changes.

  9. Lastly, reboot the Linode.

http://dokku.viewdocs.io/dokku/getting-started/install/linode/

Maybe this project needs a docker-machine-linode StackScript taking cues from Dokku's StackScript?

https://www.linode.com/api/linode/linode.disk.createfromstackscript

error 1: invalid value "us-central" for flag -linode-datacenter-id: strconv.ParseInt: parsing "us-central": invalid syntax

Hi,

Command was: ['docker-machine', 'create', '--driver=linode', '--linode-label', 'mautic-linode.com', '--linode-api-key', '', '--linode-root-pass', '**', '--linode-datacenter-id', 'us-central', '--linode-distribution-id', 'linode/ubuntu18.04', '--linode-plan-id', 'g6-nanode-1', 'mautic-linode.com']

error 1: invalid value "us-central" for flag -linode-datacenter-id: strconv.ParseInt: parsing "us-central": invalid syntax

Linode is updating their API so that could cause the issue ?

How to install on macOS

I would love to have Linode driver for Docker Machine on my Mac, but have not been able to install it correctly. Is there something I'm doing wrong or is there a "bug"?

I followed all the install instructions:

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

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

Everything runs correctly, except for the last make install command. It has the following output:

rm -f ./bin/docker-machine-driver-linode
rm -f /bin/docker-machine-driver-linode
GOGC=off go build -i -o ./bin/docker-machine-driver-linode ./bin
cp ./bin/docker-machine-driver-linode /bin/
cp: /bin/docker-machine-driver-linode: Operation not permitted
make: *** [install] Error 1

I also tried sudo make install, which didn't make a difference.
I'm on macOS 10.12.3 with Go1.8 darwin/amd64

Unable to verify the Docker daemon

When I try to create a linode VM with this command:

docker-machine -D create -d linode \

--linode-api-key My_api_key \

--linode-root-pass my_password \

--linode-plan-id 2 \

mylinode_vm

I get the below error:

Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded
open : no such file or directory
notifying bugsnag: [Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded]

name not registered for interface: "*rpcdriver.RpcFlags"

After following the setup instructions (I think!), I ran this command:

/docker-machine create -d linode --linode-api-key=XXX --linode-root-pass=password123$ linode

Then I saw the following message:

Error setting machine configuration from flags provided: gob: name not registered for interface: "*rpcdriver.RpcFlags"

Any idea how I can resolve this? I'd love to use Linode in a Docker Swarm.

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.