Skip to content

Commit 000b622

Browse files
committed
Fix bug in new add_docker_switch behaviour.
Fixes #108 Signed-off-by: Max Dymond <[email protected]>
1 parent 5676aff commit 000b622

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Status: Available for use
1616
### Added
1717

1818
### Fixed
19+
- Fixed bug in new `add_docker_switch` behaviour.
1920

2021
## [0.6.0] - 2020-07-15
2122

src/command.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ pub fn enable_docker_in_docker(
192192
dind: &crate::dind::Dind,
193193
) -> Result<DockerCommandBuilder, Error> {
194194
Ok(command
195-
.add_docker_switch(&format!("--link {}:floki-docker", dind.name()))
195+
.add_docker_switch("--link")
196+
.add_docker_switch(&format!("{}:floki-docker", dind.name()))
196197
.add_environment("DOCKER_HOST", "tcp://floki-docker:2375"))
197198
}

0 commit comments

Comments
 (0)