Update docker.rs to allow http docker socket connection (#131)

* Update docker.rs to allow http docker socket connection

Add or_else to allow attempt to connect to docker socket proxy via http if local connection fails

* Update docker.rs

Change two part connection to use connect_with_defaults instead, per review on PR.
This commit is contained in:
Morgan Wyatt
2024-10-16 19:13:19 -07:00
committed by GitHub
parent febcf739d0
commit 1cc302fcbf
+1 -1
View File
@@ -30,7 +30,7 @@ pub struct DockerClient {
impl Default for DockerClient {
fn default() -> DockerClient {
DockerClient {
docker: Docker::connect_with_local_defaults()
docker: Docker::connect_with_defaults()
.expect("failed to connect to docker daemon"),
}
}