Skip to content

Update plugin installation and uninstallation paths to use the correct directory#7

Merged
geicht merged 2 commits intogeicht:masterfrom
mallendem:fix-updated-plugin-path
Jan 30, 2026
Merged

Update plugin installation and uninstallation paths to use the correct directory#7
geicht merged 2 commits intogeicht:masterfrom
mallendem:fix-updated-plugin-path

Conversation

@mallendem
Copy link
Copy Markdown
Contributor

Due to docker/cli#6713 the current installation path for docker-compose has been deprecated.

Copilot AI review requested due to automatic review settings January 29, 2026 09:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the docker-compose Chocolatey package to use the new installation path C:\Program Files\Docker\cli-plugins\ instead of the deprecated C:\ProgramData\Docker\cli-plugins\ path, following changes in docker/cli#6713.

Changes:

  • Updated installation and uninstallation paths from C:\ProgramData\Docker\cli-plugins\ to C:\Program Files\Docker\cli-plugins\
  • Added backward compatibility cleanup in the install script to remove docker-compose from the old location

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docker-compose/tools/chocolateyInstall.ps1 Updated target directory path and added cleanup logic to remove files from the deprecated location during installation
docker-compose/tools/chocolateyUninstall.ps1 Updated directory path to match the new installation location
Comments suppressed due to low confidence (1)

docker-compose/tools/chocolateyInstall.ps1:11

  • Creating directories in "C:\Program Files" requires elevated (administrator) privileges. While Chocolatey packages typically run with elevated privileges, this migration from ProgramData (which doesn't require admin rights for all operations) to Program Files changes the permission requirements. Ensure this is documented and that users are aware they need to run the installation with administrator privileges.
$executableTargetDir    = 'C:\Program Files\Docker\cli-plugins\'
$executableTargetPath   = Join-Path $executableTargetDir 'docker-compose.exe'

# create plugin directory if it doesn't exist
if (-not (Test-Path -Path $executableTargetDir)) {
    $null = New-Item -Path $executableTargetDir -ItemType Directory
}

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

Comment thread docker-compose/tools/chocolateyUninstall.ps1
Comment thread docker-compose/tools/chocolateyInstall.ps1 Outdated
Comment thread docker-compose/tools/chocolateyUninstall.ps1
Comment thread docker-compose/tools/chocolateyInstall.ps1
@mallendem mallendem requested a review from geicht January 30, 2026 10:52
@geicht geicht merged commit 1935aa8 into geicht:master Jan 30, 2026
@geicht
Copy link
Copy Markdown
Owner

geicht commented Jan 30, 2026

I have pushed the update to chocolatey. It should come out of review within a day or two:
https://community.chocolatey.org/packages/docker-compose/5.0.2.20260130

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.

4 participants