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.ps1 script - Run
Stop-Service Docker - Restore the
daemon.json config file on the C:\ProgramData\docker\config\ path - Run
Start-Service Docker
I am currently using Windows Server 2025 with the latest patches available.
It is not possible to use the install script to:
C:\ProgramData\docker\config\daemon.json) after updating, as the script deletes the settings, technically conducting a clean installI would like for the
install-docker-ce.ps1script to detect a previous installation and update accordingly, without deleting the configuration settings of a deployed instance.Currently I have to perform the following:
Stop-Service DockerRemove-Service DockerC:\ProgramData\docker\config\daemon.jsoninstall-docker-ce.ps1scriptStop-Service Dockerdaemon.jsonconfig file on theC:\ProgramData\docker\config\pathStart-Service DockerI am currently using Windows Server 2025 with the latest patches available.