v1.1.1: 优化 UID/GID 处理逻辑 / Optimized UID/GID Handling Logic
本次更新优化了 UID/GID 处理逻辑:
- 仅当
HOST_UID
或HOST_GID
不同于1000
时,才会重新创建myuser
。 - 使用
HOST_UID
和HOST_GID
替代UID
,避免 Bash 只读变量冲突。
运行以下命令:
HOST_UID=$(id -u) HOST_GID=$(id -g) docker compose -f compose.custom.yaml up -d --build
立即升级,体验更高效的容器用户管理!
This update optimizes UID/GID handling logic:
myuser
is only recreated ifHOST_UID
orHOST_GID
differs from1000
.- Uses
HOST_UID
andHOST_GID
instead ofUID
to avoid Bash read-only variable conflicts.
Run the following command:
HOST_UID=$(id -u) HOST_GID=$(id -g) docker compose -f compose.custom.yaml up -d --build
Upgrade now for more efficient container user management!