-
Notifications
You must be signed in to change notification settings - Fork 298
Open
Description
Description
I don't want to lose my data from the previous Docker version, so I tried installing a new version by specifying a different installation directory. However, it seems that the new version cannot be installed unless the previous version is uninstalled, but that way I'll lose all the data.
╭─ ~/scoop/apps/docker-desktop-with-compose/199162⌛18ms main ⏰ 10:18:49
╰─ -------------------------------------------------------------------------------->8
Version: 4.43.2 (199162)
Sha1:
Started on: 2025/07/21 02:18:50.302
Resources: C:\Users\weidows\scoop\apps\docker-desktop-with-compose\199162\resources
OS: Windows 10 Pro for Workstations
Edition: ProfessionalWorkstation
Id: 2009
Build: 26100
BuildLabName: 26100.1.amd64fre.ge_release.240331-1435
File: C:\Users\weidows\AppData\Local\Docker\install-log.txt
CommandLine: "C:\Users\weidows\scoop\apps\docker-desktop-with-compose\199162\Docker%20Desktop%20Installer.exe" install --accept-license --backend=wsl-2 --installation-dir=. --admin-setting
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[2025-07-21T02:18:50.382342200Z][Installer][I] Existing installation found: build=195023, version=4.42.0, basePath=C:\Users\weidows\scoop\apps\docker-desktop-with-compose\195023\docker, channelUrl=https://desktop-stage.docker.com/win/main/amd64/appcast.xml
[2025-07-21T02:18:50.390002300Z][Installer][E] System.ArgumentException: The --installation-dir flag (C:\Users\weidows\scoop\apps\docker-desktop-with-compose\199162) must match existing installation (C:\Users\weidows\scoop\apps\docker-desktop-with-compose\195023\docker).
在 Docker.Installer.Program.IsUserInstallation(InstallerSettings settings, ExistingInstallation existingInstallation)
在 Docker.Installer.Program.Main(String[] args)
Docker Desktop installation failed.
Reproduce
Keep the previous version and install the new version by specifying a new path.
Expected behavior
I hope there's a way to force the installation to a new specified path, or at least provide a --force
option, instead of just exiting with no alternatives.
docker version
╰─ docker version
Client:
Version: 28.3.2
API version: 1.51
Go version: go1.24.5
Git commit: 578ccf6
Built: Wed Jul 9 16:12:31 2025
OS/Arch: windows/amd64
Context: desktop-linux
Server: Docker Desktop 4.43.2 (199162)
Engine:
Version: 28.3.2
API version: 1.51 (minimum version 1.24)
Go version: go1.24.5
Git commit: e77ff99
Built: Wed Jul 9 16:13:55 2025
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.27
GitCommit: 05044ec0a9a75232cad458027ca83437aae3f4da
runc:
Version: 1.2.5
GitCommit: v1.2.5-0-g59923ef
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker info
╰─ docker info
Client:
Version: 28.3.2
Context: desktop-linux
Debug Mode: false
Plugins:
ai: Docker AI Agent - Ask Gordon (Docker Inc.)
Version: v1.6.0
Path: C:\Program Files\Docker\cli-plugins\docker-ai.exe
buildx: Docker Buildx (Docker Inc.)
Version: v0.25.0-desktop.1
Path: C:\Program Files\Docker\cli-plugins\docker-buildx.exe
cloud: Docker Cloud (Docker Inc.)
Version: v0.4.2
Path: C:\Program Files\Docker\cli-plugins\docker-cloud.exe
compose: Docker Compose (Docker Inc.)
Version: v2.38.2-desktop.1
Path: C:\Program Files\Docker\cli-plugins\docker-compose.exe
debug: Get a shell into any image or container (Docker Inc.)
Version: 0.0.41
Path: C:\Program Files\Docker\cli-plugins\docker-debug.exe
desktop: Docker Desktop commands (Docker Inc.)
Version: v0.1.11
Path: C:\Program Files\Docker\cli-plugins\docker-desktop.exe
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.29
Path: C:\Program Files\Docker\cli-plugins\docker-extension.exe
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.4.0
Path: C:\Program Files\Docker\cli-plugins\docker-init.exe
mcp: Docker MCP Plugin (Docker Inc.)
Version: v0.9.9
Path: C:\Program Files\Docker\cli-plugins\docker-mcp.exe
model: Docker Model Runner (EXPERIMENTAL) (Docker Inc.)
Version: v0.1.33
Path: C:\Program Files\Docker\cli-plugins\docker-model.exe
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: C:\Program Files\Docker\cli-plugins\docker-sbom.exe
scout: Docker Scout (Docker Inc.)
Version: v1.18.1
Path: C:\Program Files\Docker\cli-plugins\docker-scout.exe
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 28.3.2
Storage Driver: overlayfs
driver-type: io.containerd.snapshotter.v1
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
CDI spec directories:
/etc/cdi
/var/run/cdi
Discovered Devices:
cdi: docker.com/gpu=webgpu
Swarm: inactive
Runtimes: io.containerd.runc.v2 nvidia runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 05044ec0a9a75232cad458027ca83437aae3f4da
runc version: v1.2.5-0-g59923ef
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 5.15.167.4-microsoft-standard-WSL2
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 31.27GiB
Name: docker-desktop
ID: 01b3a85d-fad0-4a10-a73e-8c250eb91502
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Labels:
com.docker.desktop.address=npipe://\\.\pipe\docker_cli
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5555
::1/128
127.0.0.0/8
Live Restore Enabled: false
WARNING: DOCKER_INSECURE_NO_IPTABLES_RAW is set
Diagnostics ID
37876639-FFA5-42EA-BD59-DA08B7D5FABC/20250721025456
Additional Info
No response