nicholasbishop / docker-command

Rust library for creating Docker commands
Apache License 2.0
6 stars 0 forks source link

Support for openssh #3

Open Rutherther opened 1 year ago

Rutherther commented 1 year ago

So I was thinking of writing a utility for deploying an application running in docker on a remote system through ssh and came across this crate. It looks to me like this could go well with this crate https://docs.rs/openssh/latest/openssh/index.html#.

What do you think about this approach? Do you think it would be sensible to modify this library to work with both std::process::Command and openssh::process::Command?

Rutherther commented 1 year ago

Oh. I figured out that docker cli has -H parameter that may be used for connecting to daemon using ssh. Using openssh command does not make sense then as this may be implemented just by using one more argument.