mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
fix(ssh): use user name in DOCKER_HOST
This commit is contained in:
parent
be05115352
commit
0229084314
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ func (self *SSHHandler) HandleSSHDockerHost() (io.Closer, error) {
|
|||
|
||||
// if the docker host scheme is "ssh", forward the docker socket before creating the client
|
||||
if u.Scheme == "ssh" {
|
||||
tunnel, err := self.createDockerHostTunnel(ctx, u.Host)
|
||||
tunnel, err := self.createDockerHostTunnel(ctx, u.User.String() + "@" + u.Host)
|
||||
if err != nil {
|
||||
return noopCloser{}, fmt.Errorf("tunnel ssh docker host: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue