From 2f0db824c3843eb47c1038d076a3c1a22c90611e Mon Sep 17 00:00:00 2001 From: David Scott Date: Thu, 13 Oct 2022 17:49:09 +0100 Subject: [PATCH] registry.json: show how to query file ACLs on Windows We already have an example for Mac. Signed-off-by: David Scott --- _includes/configure-registry-json.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/_includes/configure-registry-json.md b/_includes/configure-registry-json.md index c38f3ef3fb..eae4a391fd 100644 --- a/_includes/configure-registry-json.md +++ b/_includes/configure-registry-json.md @@ -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... +```