taoh / docker-machine-linode Goto Github PK
View Code? Open in Web Editor NEWLinode Driver Plugin for Docker Machine
License: MIT License
Linode Driver Plugin for Docker Machine
License: MIT License
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
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 ?
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]
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.
Open your server's dashboard in the Linode Manager.
Make sure your Linode is using KVM, not Xen, for virtualization.
In the "Rebuild" tab, select "Ubuntu 14.04 LTS", set a root password, and rebuild.
Once your Linode has been created, click "Boot" and wait for it to complete.
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
When prompted, install Grub onto the first hard drive.
Back in your server's dashboard, click "Edit" on its Configuration Profile
Change the "Kernel" option to "GRUB 2" and save your changes.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.