Open1

protodep を docker で

tkttkt
docker run --rm -it --workdir /run -v ~/.ssh:/root/.ssh/ -v $SSH_AUTH_SOCK:/ssh-agent -v (pwd):/run -e SSH_AUTH_SOCK=/root/.ssh tktcorporation/protodep:latest up
[INFO] force update = false
[INFO] cleanup cache = false
[INFO] identity file = 
[INFO] use https = false
[WARN] The identity file path has been passed but is not available. Falling back to ssh-agent, the default authentication method.
panic: error creating SSH agent: "Error connecting to SSH_AUTH_SOCK: dial unix /root/.ssh: connect: permission denied"

goroutine 1 [running]:
github.com/stormcat24/protodep/helper.(*AuthProviderWithSSHAgent).AuthMethod(0xf627a8, 0x2, 0x2, 0xc0000de140, 0x34)
        /go/src/github.com/stormcat24/protodep/helper/auth.go:129 +0x81
github.com/stormcat24/protodep/repository.(*GitHubRepository).Open(0xc0000c6510, 0xc0000c6510, 0x0, 0x0)
        /go/src/github.com/stormcat24/protodep/repository/git.go:53 +0x12c
github.com/stormcat24/protodep/service.(*SyncImpl).Resolve(0xc000104330, 0xb40000, 0xc000104330, 0x0)
        /go/src/github.com/stormcat24/protodep/service/sync.go:99 +0x444
github.com/stormcat24/protodep/cmd.glob..func1(0xf275a0, 0xc00000f900, 0x0, 0x2, 0x0, 0x0)
        /go/src/github.com/stormcat24/protodep/cmd/up.go:93 +0x741
github.com/spf13/cobra.(*Command).execute(0xf275a0, 0xc00000f8e0, 0x2, 0x2, 0xf275a0, 0xc00000f8e0)
        /go/src/github.com/spf13/cobra/command.go:850 +0x453
github.com/spf13/cobra.(*Command).ExecuteC(0xf27300, 0x40774f, 0xc000076058, 0x0)
        /go/src/github.com/spf13/cobra/command.go:958 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
        /go/src/github.com/spf13/cobra/command.go:895
github.com/stormcat24/protodep/cmd.Execute()
        /go/src/github.com/stormcat24/protodep/cmd/root.go:31 +0x31
main.main()
        /go/src/github.com/stormcat24/protodep/main.go:8 +0x20