Comments (11)
Since I don't see an OS specified in your message, can I assume it's deploying RancherOS?
from docker-machine-vultr.
@geneticgrabbag Oh, I'm sorry that I forgot providing the environment variables for the vultr
driver. Here it is:
#!/bin/bash
# Install Vultr Driver: https://github.com/janeczku/docker-machine-vultr
export VULTR_API_KEY=<API_KEY>
# 1 - New Jersey
# 12 - Silicon Valley
# 19 - Sydney
# 25 - Tokyo
export VULTR_REGION=12
# Plan 29 - 768 MB RAM,15 GB SSD
export VULTR_PLAN=29
# 160 - Ubuntu 14.04 x64
# 215 - Ubuntu 16.04 x64
# 167 - CentOS 7 x64
export VULTR_OS=215
# IPv6
# export VULTR_IPV6=true
export MACHINE_DRIVER=vultr
Everytime I create a vultr
host, I source
this file first.
So, I was creating 768MB/15GB
host with Ubuntu 16.04
OS in the Silicon Valley
region.
from docker-machine-vultr.
@twang2218 ah, thanks.
i tried duplicating it and I get this:
% docker-machine create -d vultr -vultr-api-key=$VULTR_TOKEN --vultr-region-id=12 --vultr-os-id=215 --vultr-plan-id=29 v1
Running pre-create checks...
(v1) Validating Vultr VPS parameters...
Creating machine...
(v1) Creating Vultr VPS...
(v1) Waiting for IP address to become available...
(v1) Created Vultr VPS ID: 6475856, Public IP: 0.0.0.0, Private IP:
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded
I can log in via the Vultr console, but it fails with an SSH call from my terminal:
% ssh root@<ip-address>
Received disconnect from <ip-address>: 2: Too many authentication failures
Disconnected from <ip-address>
from docker-machine-vultr.
The version of my vultr
driver was 1.0.6
, and I updated to the latest, 1.1.0
, the problem is same, here is the output with --debug
option:
$ docker-machine --debug create -d vultr v1
Docker Machine Version: 0.9.0-rc2, build 7b19591
Found binary path at /usr/local/bin/docker-machine-driver-vultr
Launching plugin server for driver vultr
Plugin server listening at address 127.0.0.1:60469
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine-driver-vultr
Launching plugin server for driver vultr
Plugin server listening at address 127.0.0.1:60473
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(v1) Calling .GetMachineName
(v1) Calling .DriverName
(v1) Calling .GetCreateFlags
(v1) Calling .SetConfigFromFlags
Running pre-create checks...
(v1) Calling .PreCreateCheck
(v1) Validating Vultr VPS parameters...
(v1) Calling .GetConfigRaw
Creating machine...
(v1) Calling .Create
(v1) DBG | Generating SSH key...
(v1) Creating Vultr VPS...
(v1) Waiting for IP address to become available...
(v1) Created Vultr VPS ID: 6475975, Public IP: 0.0.0.0, Private IP:
(v1) Calling .GetConfigRaw
(v1) Calling .DriverName
(v1) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
(v1) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(v1) Calling .GetSSHHostname
(v1) Calling .GetSSHPort
(v1) Calling .GetSSHKeyPath
(v1) Calling .GetSSHKeyPath
(v1) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/taowang/.docker/machine/machines/v1/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -o IdentitiesOnly=yes -i /Users/taowang/.docker/machine/machines/v1/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
Password:
I think the reason is that Public IP is returned 0.0.0.0
:
(v1) Created Vultr VPS ID: 6475975, Public IP: 0.0.0.0, Private IP:
So, that cause the ssh
command is actually trying to connect to my laptop [email protected]
. 😹
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -o IdentitiesOnly=yes -i /Users/taowang/.docker/machine/machines/v1/id_rsa -p 22] /usr/bin/ssh <nil>}
Is there any API changes cause the problem?
from docker-machine-vultr.
@twang2218 - I can confirm the attempt to SSH as root into 0.0.0.0. I'm using driver v1.1.0 with docker machine v0.8.2 on OS/X v10.11.6.
from docker-machine-vultr.
Same problem with Public IP: 0.0.0.0 it has worked before on same system
from docker-machine-vultr.
Thanks for a wonderful plugin. It doesn't seem like it's been released yet. I tried to build it myself, but I"m not familiar with Go, so I failed. Is there any way to extract a build artifact from CircleCI?
from docker-machine-vultr.
Hi dmitrym0, there is my build for linux based system http://file.sampo.ru/q86239/ (tested on ubuntu)
from docker-machine-vultr.
@dmitrym0 New release is out, enjoy! https://github.com/janeczku/docker-machine-vultr/releases/tag/v1.2.0
from docker-machine-vultr.
Came across this, thanks for fixing!
from docker-machine-vultr.
Thank you so much, works great! 👍
from docker-machine-vultr.
Related Issues (20)
- I often received "Could not get lock /var/lib/dpkg/lock" error while creating docker host HOT 7
- Invoking vultr boot scripts HOT 3
- Unable to query docker version: Cannot connect to the docker engine endpoint HOT 5
- The default plan `93` is deprecated HOT 1
- docker-machine create not compatible with VULTR firewall HOT 1
- Docker machine fails to create multiple servers at the same time HOT 6
- Debian based distros no longer finish provisioning HOT 1
- CentOS 7 no longer provisions correctly HOT 1
- How can I deploy a Docker Application on Vultr?
- How to add an already provisioned machine?
- Make this go get'able
- Deploying a RancherOS cluster (Docker Swarm Mode)
- ssh never becomes available HOT 6
- Should we try to do a PR with your code to docker-machine to be an official provider? HOT 2
- Download link in main Readme points to old version
- Creating docker machine hangs on 'Waiting machine to be running' HOT 6
- How to build an i386 binary? HOT 1
- Vultr SSH key with ID doesn't exist during creation in docker machine HOT 1
- RancherOS - Doesn't work at all HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-machine-vultr.