Comments (8)
Should work as of version 1.2.0. Could you test it in your usecase please?
from docker-machine-driver-hetzner.
Wow, this was very fast! 😄
It seem to work like expected. I just stuck in a process, where it askes for a password and doesn't accepts any of mine. But I thinks it has to do with the image rather then the driver.
Thanks!
from docker-machine-driver-hetzner.
Well, server creation doesn't seem to "import" new keys for servers created from snapshots. I also got stuck at this point when testing (mostly due to not having an SSH key at all on the test server I took the snapshot of), but I assumed that the server being created is enough to consider this 'working'.
Perhaps you could manually create a server from your snapshot, add a pregenerated SSH key to it and then use --existing-key-path
? Please note, you have to upload the key to hetzner as well and specify it's ID in order for that flag to work.
I might try and overhaul the key system as well, as it's current form emerged from the beta days and was never designed with snapshots in mind. But for now, it'd be really helpful if you could tell, if the workaround I described above works, at least.
from docker-machine-driver-hetzner.
The workaround doen't seem to work.
I only managed to add the server to my local config using -d none
docker-machine create -d none --url tcp://a.b.c.d:2376 snapshot-test
. Creating it with a full create and --hetzner-existing-key-path
doesn't worked (The syntax was correct. I checked it with an ubuntu image). I always got: Error creating machine: Error in driver during machine creation: could not create server: server name is already used (uniqueness_error)
from docker-machine-driver-hetzner.
Have you run docker machine rm -f
before? Also please double-check in the cloud console, that the name you give to the machine is not already in use as a server name.
To me at least, the error message seems unrelated to the original problem.
from docker-machine-driver-hetzner.
Yes, there was no identically named server in the cloud console and non in my local config.
I tried the following steps:
- created a new server from the snapshot named
test
docker-machine create --hetzner-api-token=..... --driver hetzner --hetzner-image-id 32323 --hetzner-existing-key-path ~/.ssh/id_rsa --hetzner-existing-key-id 4343 test
Running pre-create checks...
Creating machine...
(test) Creating Hetzner server...
Error creating machine: Error in driver during machine creation: could not create server: server name is already used (uniqueness_error)
from docker-machine-driver-hetzner.
I'm sorry, but I cannot reproduce this at all.
docker-machine create -d hetzner --hetzner-api-token REDACTED --hetzner-image-id 1502xx --hetzner-existing-key-id 401xx --hetzner-existing-key-path ./testkey hdm-test
works perfectly fine for me [well, provisioning fails when it tries to start docker, but that's another story]. Granted, I used a fresh debian cloud server and took a snapshot right away, but your error message still looks like it is another unrelated problem.
Can you please try a different name for the server? Also could you generate a fresh keypair for the trial? Besides, docker-machine copies the private key all over the place, perhaps you shouldn't use your id_rsa
.
from docker-machine-driver-hetzner.
Closing due to lack of input. If you've still got problems regarding snapshot propagation, feel free to re-open.
from docker-machine-driver-hetzner.
Related Issues (20)
- wrong naming of wait-on-error HOT 4
- make driver rancher compatible HOT 1
- image has incompatible architecture HOT 2
- Support int64 IDs HOT 1
- panic: runtime error: invalid memory address or nil pointer dereference HOT 7
- unknown location / unable to find ssh-keys HOT 2
- Provide fallback server type HOT 3
- Hetzner: Cloud API Change: GET /actions endpoint HOT 2
- Error creating machine HOT 13
- Lots of machines in cloud but only a few in docker-machine HOT 3
- Rancher - error scaling up servers HOT 7
- Rancher - VMs are not removed from Hetzner, when got storage
- Rancher - It is not possible to create Node/Clusters using RKE2/K3s, only RKE1 is available HOT 7
- Wait on srv.NextActions after creating server HOT 3
- Apple M3 Max HOT 1
- Fleeting plugin for Hetzner HOT 3
- Problem with Rancher when scaling up HOT 2
- No UI in Rancher after 3.8.1 HOT 3
- Hetzer debian/ubuntu provisioning fails HOT 4
- Suggestion: `--hetzner-user-data-from-file` could be string instead of boolean HOT 4
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-driver-hetzner.