Windows-Containers icon indicating copy to clipboard operation
Windows-Containers copied to clipboard

Install script to update Docker and retain configuration file

Open tessharp opened this issue 7 months ago • 2 comments

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.

tessharp avatar May 29 '25 22:05 tessharp

Thank you for creating an Issue. Please note that GitHub is not an official channel for Microsoft support requests. To create an official support request, please open a ticket here. Microsoft and the GitHub Community strive to provide a best effort in answering questions and supporting Issues on GitHub.

github-actions[bot] avatar May 29 '25 22:05 github-actions[bot]

This issue has been open for 90 days with no updates. @Copilot, please provide an update or close this issue.

This issue has been open for 90 days with no updates. @Copilot, please provide an update or close this issue.