-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Labels
area/rootlessRootless ModeRootless Modehelp wantedkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.version/28.0
Description
Description
I found dockerd-rootless-setuptool.sh exited with no messages. For example, run check command.
$ dockerd-rootless-setuptool.sh check
$ echo $?
1
It seems a bug caused by #49036 . Unfortunately, dockerd-rootless-setuptool.sh sets -eu options.
set -euThe below commands exit immediately when the status code is not zero.
getsubids "$USERNAME" > /dev/null 2>&1 || getsubids "$(id -u)" > /dev/null 2>&1or
grep -q "^$USERNAME_ESCAPED:\|^$(id -u):" /etc/subuid 2> /dev/nullReproduce
- remove target subuid/subgid entries in /etc/subuid (/etc/subgid)
- get latest dockerd-rootless-setuptool.sh after Use
getsubidstool for subid validation if possible #49036- I installed docker-ce-rootless-extras-28.0.4-1.el9.x86_64
- dockerd-rootless-setuptool.sh check
Expected behavior
The previous dockerd-rootless-setuptool.sh shows the following messages when the subuid/subgid entry is not found.
$ dockerd-rootless-setuptool.sh check
[ERROR] Missing system requirements. Run the following commands to
[ERROR] install the requirements and run this tool again.
[ERROR] Alternatively iptables checks can be disabled with --skip-iptables .
########## BEGIN ##########
sudo sh -eux <<EOF
# Load ip_tables module
modprobe ip_tables
# Add subuid entry for user1
echo "user1:100000:65536" >> /etc/subuid
# Add subgid entry for user1
echo "user1:100000:65536" >> /etc/subgid
EOF
########## END ##########
docker version
Client: Docker Engine - Community
Version: 28.0.4
API version: 1.48
Go version: go1.23.7
Git commit: b8034c0
Built: Tue Mar 25 15:09:38 2025
OS/Arch: linux/amd64
Context: defaultdocker info
Client: Docker Engine - Community
Version: 28.0.4
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.22.0
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.34.0
Path: /usr/libexec/docker/cli-plugins/docker-composeAdditional Info
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/rootlessRootless ModeRootless Modehelp wantedkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.version/28.0