-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrected swarmd default settings on Windows
Signed-off-by: Olli Janatuinen <[email protected]>
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
cmd/swarmd/defaults/defaults.go → cmd/swarmd/defaults/defaults_unix.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
// +build !windows | ||
|
||
package defaults | ||
|
||
// ControlAPISocket is the default path where clients can contact the swarmd control API. | ||
var ControlAPISocket = "/var/run/swarmd.sock" | ||
|
||
// EngineAddr is Docker default socket file on Linux | ||
var EngineAddr = "unix:///var/run/docker.sock" | ||
|
||
// StateDir is the default path to the swarmd state directory | ||
var StateDir = "/var/lib/swarmd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// +build windows | ||
|
||
package defaults | ||
|
||
// ControlAPISocket is the default path where clients can contact the swarmd control API. | ||
var ControlAPISocket = "//./pipe/swarmd" | ||
|
||
// EngineAddr is Docker default named pipe on Windows | ||
var EngineAddr = "npipe:////./pipe/docker_engine" | ||
|
||
// StateDir is the default path to the swarmd state directory | ||
var StateDir = `C:\ProgramData\swarmd` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters