Skip to content

Commit

Permalink
Merge pull request #1760 from StefanScherer/windows-programfiles-dock…
Browse files Browse the repository at this point in the history
…er-cli-plugins

Search Windows CLI plugins also in ProgramFiles
  • Loading branch information
tiborvass authored Mar 20, 2019
2 parents fd9d2e2 + 4d3a76d commit 774d78f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cli-plugins/manager/manager_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ import (

var defaultSystemPluginDirs = []string{
filepath.Join(os.Getenv("ProgramData"), "Docker", "cli-plugins"),
filepath.Join(os.Getenv("ProgramFiles"), "Docker", "cli-plugins"),
}
3 changes: 2 additions & 1 deletion docs/extend/cli_plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ the `/usr/local/lib` or `/usr/local/libexec` equivalents but packages
should not do so.

Plugins distributed on Windows for system wide installation should be
installed in `%PROGRAMDATA%\Docker\cli-plugins`.
installed in either `%ProgramData%\Docker\cli-plugins` or
`%ProgramFiles%\Docker\cli-plugins`.

User's may on all systems install plugins into `~/.docker/cli-plugins`.

Expand Down

0 comments on commit 774d78f

Please sign in to comment.