From cd75b32a3259ce741348f670b96f2b4f34346990 Mon Sep 17 00:00:00 2001 From: Niels Kaspers Date: Fri, 26 Jun 2026 08:48:06 +0300 Subject: [PATCH] docs: guard docker-users group creation --- .../enterprise/enterprise-deployment/faq.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/content/manuals/enterprise/enterprise-deployment/faq.md b/content/manuals/enterprise/enterprise-deployment/faq.md index 4a7f96c1df34..526ccc3ae111 100644 --- a/content/manuals/enterprise/enterprise-deployment/faq.md +++ b/content/manuals/enterprise/enterprise-deployment/faq.md @@ -63,18 +63,20 @@ psexec -i -s msiexec /i "DockerDesktop.msi" ``` The installation should complete successfully, but the `docker-users` group won't be populated. -As a workaround, you can create a script that runs in the context of the user account. +As a workaround, you can create a script that runs in the context of the user account. -The script would be responsible for creating the `docker-users` group and populating it with the correct user. +The script would be responsible for ensuring the `docker-users` group exists and populating it with the correct user. -Here's an example script that creates the `docker-users` group and adds the current user to it (requirements may vary depending on environment): +Here's an example script that creates the `docker-users` group if needed and adds the current user to it (requirements may vary depending on environment): ```powershell $Group = "docker-users" $CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name -# Create the group -New-LocalGroup -Name $Group +# Create the group if it doesn't exist +if (-not (Get-LocalGroup -Name $Group -ErrorAction SilentlyContinue)) { + New-LocalGroup -Name $Group +} # Add the user to the group Add-LocalGroupMember -Group $Group -Member $CurrentUser @@ -96,4 +98,4 @@ configuration settings in a single XML file. In these cases, you may need to deploy each setting in a separate XML file. Refer to your MDM provider's documentation for specific deployment -requirements or limitations. \ No newline at end of file +requirements or limitations.