brikis98 / docker-osx-dev

A productive development environment with Docker on OS X

Home Page:http://www.ybrikman.com/writing/2015/05/19/docker-osx-dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not finding the rsa_id with docker-machine

gah-boh opened this issue · comments

I'm having an issue where it's not finding the rsa_id and looking for it on the top level folder of the DOCKER_MACHINE_STORE_PATH instead of in DOCKER_MACHINE_STORE_PATH/machines/<machine name>/

A fix for this was pointed out on issue 133. I have a fork where it's working, if you'd like a pull request, but it's basically exactly what @dekz wrote in the issue.

Was this not fixed by @lukaso's #136? Have you tried updating?

I did make sure I had the most recent version (even though I started using this yesterday). My fork with the change is also up to date.

I'm going to set this up on my coworkers machine tomorrow so I'll be able to check if it's just me. I'll keep you posted.

I have no idea how our installations are different, but it is good to get confirmation that I am not the only one.

~ ❯❯❯ docker-machine inspect --format="{{.HostOptions.AuthOptions.StorePath}}" dev
/Users/jacob/.docker/machine
~ ❯❯❯ docker-machine inspect --format="{{.StorePath}}" dev
<no value>

Neither of these values will result in $DOCKER_MACHINE_STORE_PATH/machines/dev/id_rsa which is where our keys exist.

I had the same behaviour when I downgraded to 0.4.1 docker-machine from a
machine I'd previously upgraded to 0.5.0. I ended up rebuilding my vm.
On 13 Nov 2015 00:05, "Jacob Evans" notifications@github.com wrote:

I have no idea how our installations are different, but it is good to get
confirmation that I am not the only one.

~ ❯❯❯ docker-machine inspect --format="{{.HostOptions.AuthOptions.StorePath}}" dev
/Users/jacob/.docker/machine
~ ❯❯❯ docker-machine inspect --format="{{.StorePath}}" dev

Neither of these values will result in
$DOCKER_MACHINE_STORE_PATH/machines/dev/id_rsa


Reply to this email directly or view it on GitHub
#140 (comment)
.

I'm using docker-machine 0.5.0. I haven't upgraded or downgraded it.

I just tried this on my co workers machine. It works on his, the main difference is he's using docker-machine 3.0.

Yeah it is obvious this is happening to others (see #142).

I'll look at making a PR to support both places for the key.

As far as I can see the implementation used by docker-machine ssh dev resolves the ssh client key to:

filepath.Join(d.StorePath, "machines", d.MachineName, file)

Where file is "id_rsa" as can be seen here.

Can anyone who has /machines/id_rsa confirm they still have /machines/dev/id_rsa.

Using StorePath directly is also not intended