diff --git a/content/manuals/engine/cli/completion.md b/content/manuals/engine/cli/completion.md index ac8fe44eb4bb..497bb8da5a45 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 + +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)' +```