Skip to content

Commit 0930398

Browse files
csantanaprrabbah
authored andcommitted
Support docker for mac using the 'local' environment (#2686)
1 parent 8a5f7b5 commit 0930398

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/src/test/scala/actionContainers/ActionContainer.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ object ActionContainer {
9090
}
9191

9292
private lazy val dockerCmd: String = {
93-
val hostStr = if (WhiskProperties.onMacOSX()) {
93+
val version = WhiskProperties.getProperty("whisk.version.name")
94+
// Check if we are running on docker-machine env.
95+
val hostStr = if (version.toLowerCase().contains("mac")) {
9496
s" --host tcp://${WhiskProperties.getMainDockerEndpoint()} "
9597
} else {
9698
" "

0 commit comments

Comments
 (0)