Comments (6)
Sorry - my go version was to old. I got a binary now
from docker-machine-driver-triton.
OK. Having compiled docker-machine-driver-triton I tried to add it as a custom docker-machine driver to rancher (s. http://rancher.com/docs/rancher/v1.3/en/configuration/machine-drivers/). That worked OK. Problem is, that we have to add "A path to an SSH private key file that has been added to $SDC_ACCOUNT" to provision a VM. I guess, this path would be inside the rancher server (which is a docker container, as well). I've tried to add it (by mapping a volume inside the rancher server) but get
Error with pre-create check: "error creating SSH private key signer: Error PEM-decoding private key material: nil block received
back from the cloudapi.
I know, that this is probably a rancher question but at the same time I suspect that here are more Joyent users than in the rancher-community.
Can I provide the key instead of the path to the key?
from docker-machine-driver-triton.
The error you've described, error creating SSH private key signer: Error PEM-decoding private key material: nil block received
, typically comes from a string value being input into our Go client library (triton-go
) but not in a format that can be parsed. That would be the Error PEM-decoding private key material
part.
Verify the key input into the Docker Machine driver. Make sure you are handling newlines properly or transforming newlines before it is used by Docker Machine. I'm not sure how this can be done with Rancher.
Let me know what you find, interested in helping debug this.
from docker-machine-driver-triton.
As another example, the same Go client library (triton-go
) that Docker Machine driver is using is also used by Minio. In order to pass a key into a container to run Minio I had to transform newlines into #
than back into newlines. Here's the relevant bits.
from docker-machine-driver-triton.
@neuroserve I'm a little late to the party but did you ever get this working? I'm interested in a rancher machine driver for triton as well.
from docker-machine-driver-triton.
@neuroserve I recently worked on getting this machine driver working in Rancher and IIRC I also encountered this error in the beginning:
error creating SSH private key signer: Error PEM-decoding private key material: nil block received
and I think I worked around it by generating a new SSH key in PEM format (ssh-keygen -m PEM ...
) and added that to my Triton account. Then triton-go
didn't complain about the key. The key that it didn't like started with:
-----BEGIN OPENSSH PRIVATE KEY-----
and the PEM key that it liked started with:
-----BEGIN RSA PRIVATE KEY-----
I guess, this path would be inside the rancher server (which is a docker container, as well). I've tried to add it (by mapping a volume inside the rancher server)
Since this is a very old issue with no recent activity I opened a new issue (#13) related to this that will be followed up by a PR for making this driver compatible with Rancher.
from docker-machine-driver-triton.
Related Issues (6)
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-triton.