-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added update script from 1.1.1 to 1.3.0 #36
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is missing the changes required in the config file and also the changes on the installer for 1.3.0.
update.ps1
Outdated
else # All update preconditions passed | ||
{ | ||
# Create backup of dockerd | ||
Copy-Item "$script:windowsBinariesPath\dockerd.exe" "C:\" -Recurse -Force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better create a temporary file (https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/new-temporaryfile?view=powershell-7.2) and copy the file there.
Please apply also that change to installation to avoid writing directly on C: when decompressing dockerd
update.ps1
Outdated
# Restore and remove backup of dockerd | ||
Stop-Service -Name "docker" | ||
Copy-Item "C:\dockerd.exe" $script:windowsBinariesPath -Recurse -Force | ||
Remove-Item "C:\dockerd.exe" | ||
Start-Service -Name "docker" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, this and the above assume that the user installed Windows containers support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update installer script with new version (and use $env:LOCALAPPDATA
and $env:APPDATA
where appropriate) and modify settings.json for new installations
Co-authored-by: albertdb <albertdb@users.noreply.github.com>
Co-authored-by: albertdb <albertdb@users.noreply.github.com>
Co-authored-by: albertdb <albertdb@users.noreply.github.com>
Co-authored-by: albertdb <albertdb@users.noreply.github.com>
No description provided.