docker / scout-cli

Docker Scout CLI
https://docker.com/products/docker-scout
Other
250 stars 60 forks source link

docker plugin configuration in the readme is not a proper json #98

Closed sgandon closed 4 months ago

sgandon commented 4 months ago

the readme states to modify the .docker/config.json like this

{
    ...
    "cliPluginsExtraDirs": [
        <full path to the .docker/scout folder>
    ],
    ...
}

but this is not a valid json. this makes docker fail with

cannot unmarshal array into Go struct field File.plugins of type map[string]string
/Users/myname/.docker/config.json: json: cannot unmarshal array into Go struct field ConfigFile.plugins of type map[string]string
cdupuis commented 4 months ago

Thanks for raising this. This option takes an array of strings. Did you try this?

cdupuis commented 4 months ago

I've update the README to be proper JSON now.