mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-05-11 18:32:24 -04:00
[PR #57] [MERGED] Fix docker permission with docker group #68
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/57
Author: @dragonfire1119
Created: 11/12/2025
Status: ✅ Merged
Merged: 11/12/2025
Merged by: @dragonfire1119
Base:
master← Head:fix-docker-permission-with-docker-group📝 Commits (3)
6638673Add user to docker group and improve Docker service handlinga28239cRemove manual Docker directory permission fixesdd3650fUpdate script version to 1.2.0 in run.sh📊 Changes
1 file changed (+67 additions, -49 deletions)
View changed files
📝
casaos-fix-docker-api-version/run.sh(+67 -49)📄 Description
This pull request updates the
casaos-fix-docker-api-version/run.shscript to improve Docker permission handling, clarify cleanup steps, and streamline Docker directory management. The most significant changes introduce automatic user group configuration for Docker, simplify Docker runtime cleanup, and ensure Docker manages its own directory permissions on startup.Docker permissions and user management:
add_user_to_docker_groupfunction that automatically adds the current non-root user to thedockergroup if needed, providing clear instructions for the user to re-login or usenewgrpfor the permission change to take effect. This function is now called as part of the main workflow. [1] [2]Docker runtime cleanup and permissions:
clean_docker_statefunction to focus only on cleaning runtime state (such as sockets and pids), removing all manual Docker directory permission fixes and clarifying log messages. Now, Docker is relied upon to set its own directory permissions at startup. [1] [2]overlay2directory and other Docker directories from both the cleanup and downgrade steps, further delegating directory management to Docker itself. [1] [2]Service management improvements:
docker.socketanddockerservices before starting them, improving reliability after changes.Other updates:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.