fussybeaver / bollard

Docker daemon API in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unclear error when docker is not running

cosmikwolf opened this issue · comments

on Mac OS, I get the following error when I try and do:

let docker = Docker::connect_with_local_defaults().unwrap();

called `Result::unwrap()` on an `Err` value: HyperLegacyError { err: Error { kind: Connect, source: Some(Os { code: 2, kind: NotFound, message: "No such file or directory" }) } }

In the errors file, all I could find is that the hyper legacy error should never happen.

Also I would expect that connect_with_local_defaults() would fail if the docker client is not running.

Is this the same as #383 ?

ah yes, looks like a duplicate. closing.

Thanks for your plugin! its rad :D