Install script to update Docker and retain configuration file
It is not possible to use the install script to:
- Update Docker unless you remove the Docker Service
- 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:
- Run
Stop-Service Docker - Run
Remove-Service Docker - Backup the config file
C:\ProgramData\docker\config\daemon.json - Run the
install-docker-ce.ps1script - Run
Stop-Service Docker - Restore the
daemon.jsonconfig file on theC:\ProgramData\docker\config\path - Run
Start-Service Docker
I am currently using Windows Server 2025 with the latest patches available.
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.
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.