Skip to content

Commit

Permalink
Corrected default volumes root directory for Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Olli Janatuinen <[email protected]>
  • Loading branch information
olljanat committed Jan 16, 2020
1 parent c9a8a2d commit 44eeae9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
3 changes: 0 additions & 3 deletions volume/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import (
)

const (
// DefaultDockerRootDirectory is the default directory where volumes will be created.
DefaultDockerRootDirectory = "/var/lib/docker-volumes"

manifest = `{"Implements": ["VolumeDriver"]}`
createPath = "/VolumeDriver.Create"
getPath = "/VolumeDriver.Get"
Expand Down
8 changes: 8 additions & 0 deletions volume/unix_api.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// +build !windows

package volume

const (
// DefaultDockerRootDirectory is the default directory where volumes will be created.
DefaultDockerRootDirectory = "/var/lib/docker-volumes"
)
8 changes: 8 additions & 0 deletions volume/windows_api.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// +build windows

package volume

const (
// DefaultDockerRootDirectory is the default directory where volumes will be created.
DefaultDockerRootDirectory = `C:\ProgramData\docker-volumes`
)

0 comments on commit 44eeae9

Please sign in to comment.