Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@vvoland
Copy link
Contributor

@vvoland vvoland commented Apr 17, 2025

Fix a logical error in the rootless setup tool where the iptables error handling was incorrectly placed. The code was setting faced_iptables_error=1 even when iptables was available, causing unnecessary error messages and setup suggestions.

This patch correctly moves the error handling into the else branch so that we only report iptables errors when the command is actually unavailable.

- Human readable description for the release notes

Fix `dockerd-rootless-setuptool.sh` incorrectly reporting missing `iptables`

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

Fix a logical error in the rootless setup tool where the iptables error
handling was incorrectly placed. The code was setting
`faced_iptables_error=1` even when iptables was available, causing
unnecessary error messages and setup suggestions.

This patch correctly moves the error handling into the `else` branch so
that we only report iptables errors when the command is actually
unavailable.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland added this to the 28.1.1 milestone Apr 17, 2025
@vvoland vvoland requested review from AkihiroSuda and robmry April 17, 2025 17:24
@vvoland vvoland self-assigned this Apr 17, 2025
Copy link
Contributor

@robmry robmry left a comment

Choose a reason for hiding this comment

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

Eek, thank you.

Looks like I lost the "else" when I applied one of the review suggestions ... https://github.com/moby/moby/compare/ad177b44c71733d1af3923dd1ccdfdb73408ca42..f80feba1810c6a57ba92ebc03753c384335b08f9

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

@AkihiroSuda AkihiroSuda merged commit e70ce7a into moby:master Apr 17, 2025
182 of 183 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.