I feel dumb as this should be straightforward but I can't find any match for this error:
I'm simply trying to replace the default docker provider endpoint in a docker-compose.yml command: section from
msg="Failed to create a client for docker, error: parse \"\\\"ssh://user@192.168.0.135\\\"\": first path segment in URL cannot contain colon" providerName=docker
Based on the second error you are missing ssh.
If you're using the traefik container ssh is not installed, you could try building your own and add openssh-client.
hum, that's right, the ssh binary should be available from the Traefik docker container.
This is the 1st method advised by traefik documentation to secure the traefik install.
I would have expected the ssh binary to be readily available then, but since the traefik image is based on Alpine, it takes an extra step to make ssh available.
Based on this I got it working, by manually connecting to the Traefik container, then apk add openssh then creating a private/pub key, adding the private to the container and the public to the docker host .ssh/authorized_keys.
It's really nice to see this working but it'd be way too convoluted to automate this for me.
So I guess until Traefik offers a solution to implement this easily I'll have to keep the default Unix socket solution, and secure the Traefik dashboard/api with an IP whitelisting middleware