Open doublehelix opened 7 months ago
edited as upgrading to 4.28 also failed to update compose
Possibly resolved (with manual intervention).
After manually deleting the C:\users\username\.docker
folder and re-installing, compose was updated successfully...
This folder WAS NOT automatically removed when docker desktop was uninstalled. However, it was re-created when I re-installed docker desktop.
Steps taken to resolve:
.docker
folder from C:\users\username\
folderdocker version
Client:
Cloud integration: v1.0.35+desktop.10
Version: 25.0.3
API version: 1.44
Go version: go1.21.6
Git commit: 4debf41
Built: Tue Feb 6 21:13:02 2024
OS/Arch: windows/amd64
Context: default
Server: Docker Desktop 4.27.2 (137060)
Engine:
Version: 25.0.3
API version: 1.44 (minimum version 1.24)
Go version: go1.21.6
Git commit: f417435
Built: Tue Feb 6 21:14:25 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.28
GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker compose version
Docker Compose version v2.24.5-desktop.1
@doublehelix thank you for the workaround. I had the same issue, and I noticed that when I tried to delete/move the C:\users\username\.docker
folder, I had to close VSCode (which has the Docker extension) before it could be moved. It appears that extension had the folder open. I wonder if that is preventing the update functionality of Docker from changing files there as needed when doing updates. Do you use VSCode with the Docker plugin too?
@doublehelix thank you for the workaround. I had the same issue, and I noticed that when I tried to delete/move the
C:\users\username\.docker
folder, I had to close VSCode (which has the Docker extension) before it could be moved. It appears that extension had the folder open. I wonder if that is preventing the update functionality of Docker from changing files there as needed when doing updates. Do you use VSCode with the Docker plugin too?
Yes, indeed I do. Could very well have been an issue. I'll have to retest with vscode closed (which is rare). Thanks 👍
Description
After upgrading docker desktop to v4.27.2, the docker compose version remains at 2.19.0. The latest Docker Compose is 2.24.6. (desktop 4.27.2 release notes specifies the included compose version should be 2.24.5) The documentation says to upgrade docker compose, install the latest docker desktop.
Is this because there are no windows compatible builds yet? Is there a way to build explicitly for windows myself? (I ask as I need features in v2.22 or higher (docker compose watch))
update
As noted in comments, manually deleting the
C:\Users\username\.docker
folder allows successful re-installation with the correct version of compose.Reproduce
Install Docker Desktop v4.27.2 check version of compose:
docker compose version
Expected behavior
docker version
docker info
Diagnostics ID
AA457EDD-6104-4040-A0B9-8B7D557652A1/20240305223009
Additional Info
No response