Make docker-users workaround script idempotent by devendrakushwah80 · Pull Request #25424 · docker/docs · GitHub
Skip to content

Make docker-users workaround script idempotent#25424

Open
devendrakushwah80 wants to merge 2 commits into
docker:mainfrom
devendrakushwah80:fix-docker-users-script
Open

Make docker-users workaround script idempotent#25424
devendrakushwah80 wants to merge 2 commits into
docker:mainfrom
devendrakushwah80:fix-docker-users-script

Conversation

@devendrakushwah80

Copy link
Copy Markdown
Contributor

Description

Updates the workaround script in the Enterprise Deployment FAQ to avoid recreating the docker-users group when it already exists.

The current script unconditionally calls New-LocalGroup, which can fail if the group is already present. This change makes the script idempotent by checking for the group's existence before creating it.

Related issues or tickets

Fixes #25420

Reviews

  • Technical review
  • Editorial review
  • Product review

Copilot AI review requested due to automatic review settings June 23, 2026 16:10
@netlify

netlify Bot commented Jun 23, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Enterprise Deployment FAQ PowerShell workaround script so it won’t fail when the docker-users local group already exists, improving reliability for repeated/automated execution.

Changes:

  • Adds an existence check (Get-LocalGroup ... -ErrorAction SilentlyContinue) before calling New-LocalGroup.
  • Keeps the script behavior focused on ensuring the current user is added to docker-users.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread content/manuals/enterprise/enterprise-deployment/faq.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs-scanner] PowerShell script will fail: attempts to create existing docker-users group

2 participants