janeczku / docker-machine-vultr

:m: Docker Machine driver for Vultr Cloud
MIT License
192 stars 25 forks source link

Vultr SSH key with ID doesn't exist during creation in docker machine #44

Closed coconuthk closed 6 years ago

coconuthk commented 6 years ago

I executed the command below in order to create a new instance. However, it return error "Vultr SSH key with ID {vultr-ssh-key} doesn't exist". I can find the ssh key id in Console (Server -> SSH Keys). Please help to solve this problem.

docker-machine create \ --driver vultr \ --vultr-api-key={my-api-key} \ --vultr-region-id=25 \ --vultr-plan-id=202 \ --vultr-os-id=215 \ --vultr-ssh-key-id={vultr-ssh-key} \ --vultr-private-networking \ ubuntu-cms

coconuthk commented 6 years ago

Vultr Support replied as below: Please note that the "Name" and "ID" fields for SSH keys are separate values. You can find the ID of a key by clicking its name on the https://my.vultr.com/sshkeys/ page, and then checking the URL in your browser.

An example URL would be as follows: https://my.vultr.com/sshkeys/manage/?SSHKEYID=KEY_ID_STRING_HERE