From 1e12b931d3358011f5e3407d21a3dc6746bdacb7 Mon Sep 17 00:00:00 2001 From: hegi Date: Mon, 21 Sep 2026 18:34:40 -0600 Subject: [PATCH 1/2] Add PowerShell completion instructions to documentation Added PowerShell section for Docker CLI completion. --- content/manuals/engine/cli/completion.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/manuals/engine/cli/completion.md b/content/manuals/engine/cli/completion.md index ac8fe44eb4bb..c930e7693a7a 100644 --- a/content/manuals/engine/cli/completion.md +++ b/content/manuals/engine/cli/completion.md @@ -17,6 +17,7 @@ You can generate completion scripts for the following shells: - [Bash](#bash) - [Zsh](#zsh) - [fish](#fish) +- [PowerShell](#powershell) ## Bash @@ -105,3 +106,11 @@ To activate completion for Docker commands, copy or symlink the completion scrip $ mkdir -p ~/.config/fish/completions $ docker completion fish > ~/.config/fish/completions/docker.fish ``` + +## PowerShell + +In order to make this work with PowerShell, run the following script as-is in a Terminal window, then restart the terminal: + +```console +Add-Content -Path "$PROFILE" -Value 'Invoke-Expression (&docker completion powershell | Out-String)' +``` From 6a3c6d3166dfbb234c1cb489ffec0decf735607f Mon Sep 17 00:00:00 2001 From: hegi Date: Mon, 21 Sep 2026 18:40:29 -0600 Subject: [PATCH 2/2] Fix wording in PowerShell instructions --- content/manuals/engine/cli/completion.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/manuals/engine/cli/completion.md b/content/manuals/engine/cli/completion.md index c930e7693a7a..497bb8da5a45 100644 --- a/content/manuals/engine/cli/completion.md +++ b/content/manuals/engine/cli/completion.md @@ -109,7 +109,7 @@ $ docker completion fish > ~/.config/fish/completions/docker.fish ## PowerShell -In order to make this work with PowerShell, run the following script as-is in a Terminal window, then restart the terminal: +To make this work with PowerShell, run the following script as-is in a Terminal window, then restart the terminal: ```console Add-Content -Path "$PROFILE" -Value 'Invoke-Expression (&docker completion powershell | Out-String)'