Giter Club home page Giter Club logo

Comments (8)

JonasProgrammer avatar JonasProgrammer commented on May 30, 2024 1

Should work as of version 1.2.0. Could you test it in your usecase please?

from docker-machine-driver-hetzner.

kaotika avatar kaotika commented on May 30, 2024

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.

JonasProgrammer avatar JonasProgrammer commented on May 30, 2024

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.

kaotika avatar kaotika commented on May 30, 2024

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.

JonasProgrammer avatar JonasProgrammer commented on May 30, 2024

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.

kaotika avatar kaotika commented on May 30, 2024

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.

JonasProgrammer avatar JonasProgrammer commented on May 30, 2024

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.

JonasProgrammer avatar JonasProgrammer commented on May 30, 2024

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)

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.