Skip to content

Install script to update Docker and retain configuration file #595

@tessharp

Description

@tessharp

It is not possible to use the install script to:

  1. Update Docker unless you remove the Docker Service
  2. Retain your Docker service configuration (C:\ProgramData\docker\config\daemon.json) after updating, as the script deletes the settings, technically conducting a clean install

I would like for the install-docker-ce.ps1 script to detect a previous installation and update accordingly, without deleting the configuration settings of a deployed instance.

Currently I have to perform the following:

  1. Run Stop-Service Docker
  2. Run Remove-Service Docker
  3. Backup the config file C:\ProgramData\docker\config\daemon.json
  4. Run the install-docker-ce.ps1 script
  5. Run Stop-Service Docker
  6. Restore the daemon.json config file on the C:\ProgramData\docker\config\ path
  7. Run Start-Service Docker

I am currently using Windows Server 2025 with the latest patches available.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions