Skip to content

dockerd-rootless-setuptool.sh: Fix silent stop on error due to using output redirection together wit…#50059

Merged
thaJeztah merged 1 commit intomoby:masterfrom
shangmu:master
Jun 3, 2025
Merged

dockerd-rootless-setuptool.sh: Fix silent stop on error due to using output redirection together wit…#50059
thaJeztah merged 1 commit intomoby:masterfrom
shangmu:master

Conversation

@shangmu
Copy link
Contributor

@shangmu shangmu commented May 23, 2025

dockerd-rootless-setuptool.sh: Fix silent stop on error when subuid/subgid system requirements are not satisfied.

- What I did

- How I did it

- How to verify it
Use an account without relevant entries in /etc/subuid or /etc/subgid and run dockerd-rootless-setuptool.sh check or dockerd-rootless-setuptool.sh install. It should print '[ERROR] ...' instead of silently returns.

- Human readable description for the release notes

`dockerd-rootless-setuptool.sh`: Fix the script from silently returning with no error message when subuid/subgid system requirements are not satisfied.

- A picture of a cute animal (not mandatory but encouraged)

@AkihiroSuda
Copy link
Member

The issue seems a regression in v28.0

@thaJeztah
Copy link
Member

Thanks for updating; could you squash the commits?

@shangmu
Copy link
Contributor Author

shangmu commented May 27, 2025

Thanks for updating; could you squash the commits?

done.

@shangmu
Copy link
Contributor Author

shangmu commented May 27, 2025

actually, seems like this might need a rebase to the diverged new upstream master first. I'll have to do this tomorrow..

…h `set -eu`.

Signed-off-by: Shang Mu <smu@princeton.edu>
@AkihiroSuda AkihiroSuda requested a review from thaJeztah May 29, 2025 04:19
@thaJeztah thaJeztah modified the milestones: 28.2.1, 28.2.2 May 29, 2025
@vvoland vvoland modified the milestones: 28.2.2, 28.2.3 May 30, 2025
@AkihiroSuda
Copy link
Member

@thaJeztah @vvoland Can we merge this?

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@thaJeztah thaJeztah merged commit e2b9f3d into moby:master Jun 3, 2025
249 of 251 checks passed
@vvoland vvoland modified the milestones: 28.2.3, 28.3.0 Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/rootless Rootless Mode impact/changelog kind/bugfix PR's that fix bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dockerd-rootless-setuptool.sh exits without error messages when the subuid/subgid entry is not found

4 participants