registry.json: show how to query file ACLs on Windows

We already have an example for Mac.

Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
David Scott 2022-10-13 17:49:09 +01:00
parent 912608daad
commit 2f0db824c3
1 changed files with 13 additions and 1 deletions

View File

@ -66,7 +66,19 @@ To manually create a `registry.json` file, run the following PowerShell command
PS> Set-Content /ProgramData/DockerDesktop/registry.json '{"allowedOrgs":["myorg"]}'
```
This creates the `registry.json` file at `C:\ProgramData\DockerDesktop\registry.json` and includes the organization information the user belongs to. Make sure this file can't be edited by the user, only by the administrator.
This creates the `registry.json` file at `C:\ProgramData\DockerDesktop\registry.json` and includes the organization information the user belongs to. Make sure this file can't be edited by the user, only by the administrator:
```console
PS C:\ProgramData\DockerDesktop> Get-Acl .\registry.json
Directory: C:\ProgramData\DockerDesktop
Path Owner Access
---- ----- ------
registry.json BUILTIN\Administrators NT AUTHORITY\SYSTEM Allow FullControl...
```
</div>
<div id="mac" class="tab-pane fade" markdown="1">