Skip to content

Commit

Permalink
Merge pull request #424 from WhyNotHugo/DOCKER_HOST
Browse files Browse the repository at this point in the history
docker: Respect $DOCKER_HOST
  • Loading branch information
dalance authored Jan 29, 2023
2 parents 39e7bf5 + f792110 commit f8fb72d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,8 @@ pub struct ConfigDocker {
impl Default for ConfigDocker {
fn default() -> Self {
ConfigDocker {
path: String::from("unix:///var/run/docker.sock"),
path: std::env::var("DOCKER_HOST")
.unwrap_or(String::from("unix:///var/run/docker.sock")),
}
}
}
Expand Down

0 comments on commit f8fb72d

Please sign in to comment.