Commit Graph

6 Commits

Author SHA1 Message Date
Matej Vasek 1f5a95a4a7
Improvements for podman on Windows and macOS (#1230)
* fix: pack docker socket mounting with npipe

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* feat: trust ssh connection by podman machine

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix: socket mount on macOS with podman machine

The `podman machine start` outputs recipe for DOCKER_HOST setting,
following the recipe it was causing troubles,
since path in host OS and in the podman VM is different.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* chore: use go-winio library for handling npipes

Replacing unmaintained an buggy library.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* test: added test for podman machine auto connect

Signed-off-by: Matej Vasek <mvasek@redhat.com>

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-12 17:26:46 +00:00
Matej Vasek 669329f02f
Improve error handling (#916)
* replaced plain `==` by `error.Is()`
* wrapping some more errors using `fmt.Errorf()`

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-22 17:18:17 -07:00
Matej Vasek 917a8efdb2
Hint to user when ssh server key is not known (#885)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-08 10:08:05 -08:00
jrangelramos 3177287571
chore: Adding support to ssh-agent on Windows using named pipes (#733) 2022-01-05 10:38:33 -08:00
Matej Vasek 852626a975
Docker SSH test (#659)
* src: refactor tests

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* src: add comments

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* src: fix style

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* test: add test for ssh docker client

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* src: refactore rename struct

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* src: more reliable connection disposal

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* src: avoid unnecessary wrapping

When using dial-stdio the DialContext is not associated
with an SSH connection so wrapper with clean up is not needed.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* src: add doc comment

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-11-14 17:18:54 -08:00
Matej Vasek e1f164d2ca
feat: ssh connection to remote docker daemon (#594)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-11-02 09:39:41 -07:00