Skip to content

v1.1.1: 优化 UID/GID 处理逻辑 / Optimized UID/GID Handling Logic

Compare
Choose a tag to compare
@Oaklight Oaklight released this 29 Dec 10:07
· 14 commits to master since this release

本次更新优化了 UID/GID 处理逻辑:

  1. 仅当 HOST_UIDHOST_GID 不同于 1000 时,才会重新创建 myuser
  2. 使用 HOST_UIDHOST_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:

  1. myuser is only recreated if HOST_UID or HOST_GID differs from 1000.
  2. Uses HOST_UID and HOST_GID instead of UID 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!