mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-04-04 08:24:01 -04:00
[PR #56] [MERGED] Improve Docker downgrade script robustness #70
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bigbeartechworld/big-bear-scripts/pull/56
Author: @dragonfire1119
Created: 11/11/2025
Status: ✅ Merged
Merged: 11/11/2025
Merged by: @dragonfire1119
Base:
master← Head:fix-downgrade-not-working📝 Commits (1)
0dc8491Improve Docker downgrade script robustness📊 Changes
1 file changed (+59 additions, -20 deletions)
View changed files
📝
casaos-fix-docker-api-version/run.sh(+59 -20)📄 Description
This pull request improves the robustness and user experience of the CasaOS Docker version fix script. The most important changes include enhanced error handling during Docker installation, improved package version reporting, and safer backup logic. These updates make the script more reliable and informative for users troubleshooting Docker compatibility issues.
Error handling and installation robustness:
||blocks. The script now tries multiple installation methods and provides a clear error message if all attempts fail.User experience and reporting improvements:
dpkg -l, and consistently using theSUDOvariable for commands requiring elevated privileges. [1] [2]docker runcommands to prevent indefinite hangs, and clarified messaging during the test process.Safety and reliability:
/var/lib/dockeronly occurs if the directory exists, preventing errors during backup.Other minor updates include version bumping in the script banner and initialization of the
SUDOvariable for consistent privilege escalation.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.