Search Windows CLI plugins also in ProgramFiles

Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
Stefan Scherer 2019-03-19 09:30:14 -07:00
parent 6d59892b66
commit 4d3a76d71e
No known key found for this signature in database
GPG Key ID: 505AF50C5D02E697
2 changed files with 3 additions and 1 deletions

View File

@ -7,4 +7,5 @@ import (
var defaultSystemPluginDirs = []string{
filepath.Join(os.Getenv("ProgramData"), "Docker", "cli-plugins"),
filepath.Join(os.Getenv("ProgramFiles"), "Docker", "cli-plugins"),
}

View File

@ -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`.