[PR #60] [MERGED] Improve Docker downgrade process and cleanup #67

Closed
opened 2025-11-20 04:14:29 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bigbeartechworld/big-bear-scripts/pull/60
Author: @dragonfire1119
Created: 11/13/2025
Status: Merged
Merged: 11/13/2025
Merged by: @dragonfire1119

Base: masterHead: fix-the-stale-cache


📝 Commits (1)

  • ec1e4a1 Improve Docker downgrade process and cleanup

📊 Changes

1 file changed (+26 additions, -3 deletions)

View changed files

📝 casaos-fix-docker-api-version/run.sh (+26 -3)

📄 Description

This pull request updates the Docker downgrade process in the casaos-fix-docker-api-version/run.sh script to be more robust and thorough. The main improvements focus on cleaning up old Docker repository configurations and unused dependencies to prevent conflicts and ensure a clean installation.

Enhancements to Docker downgrade and cleanup process:

  • Added steps to remove existing Docker repository files (such as docker.list and any docker*.list files) from /etc/apt/sources.list.d/ before setting up the new repository, reducing the risk of repository conflicts.
  • Implemented apt cache cleaning and forced removal of /var/lib/apt/lists/* to ensure fresh package lists are downloaded.
  • Updated the package removal command to use --purge, ensuring all configuration files are deleted, and added an apt-get autoremove step to clean up unused dependencies after Docker is uninstalled.
  • Clarified in comments and output that apt-get update is a forced refresh after repository changes.

Other:

  • Updated the script version number in the output from 1.2.1 to 1.3.0.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bigbeartechworld/big-bear-scripts/pull/60 **Author:** [@dragonfire1119](https://github.com/dragonfire1119) **Created:** 11/13/2025 **Status:** ✅ Merged **Merged:** 11/13/2025 **Merged by:** [@dragonfire1119](https://github.com/dragonfire1119) **Base:** `master` ← **Head:** `fix-the-stale-cache` --- ### 📝 Commits (1) - [`ec1e4a1`](https://github.com/bigbeartechworld/big-bear-scripts/commit/ec1e4a170e84a20d6d0addc1bf4115a28edde7d0) Improve Docker downgrade process and cleanup ### 📊 Changes **1 file changed** (+26 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `casaos-fix-docker-api-version/run.sh` (+26 -3) </details> ### 📄 Description This pull request updates the Docker downgrade process in the `casaos-fix-docker-api-version/run.sh` script to be more robust and thorough. The main improvements focus on cleaning up old Docker repository configurations and unused dependencies to prevent conflicts and ensure a clean installation. **Enhancements to Docker downgrade and cleanup process:** * Added steps to remove existing Docker repository files (such as `docker.list` and any `docker*.list` files) from `/etc/apt/sources.list.d/` before setting up the new repository, reducing the risk of repository conflicts. * Implemented apt cache cleaning and forced removal of `/var/lib/apt/lists/*` to ensure fresh package lists are downloaded. * Updated the package removal command to use `--purge`, ensuring all configuration files are deleted, and added an `apt-get autoremove` step to clean up unused dependencies after Docker is uninstalled. * Clarified in comments and output that `apt-get update` is a forced refresh after repository changes. **Other:** * Updated the script version number in the output from 1.2.1 to 1.3.0. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 04:14:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/big-bear-scripts#67