Skip to content

Conversation

@thaJeztah
Copy link
Member

This warning is better handled by the daemon, where applicable, as the client does not have all information available to determine if using a localhost / loopback-address for the DNS is possible.

- Human readable description for the release notes

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

@thaJeztah thaJeztah added this to the 29.0.0 milestone Oct 6, 2025
@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Oct 6, 2025
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This warning is better handled by the daemon, where applicable, as
the client does not have all information available to determine
if using a localhost / loopback-address for the DNS is possible.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes client-side localhost DNS validation and warnings for container creation, delegating this responsibility to the daemon which has better context to determine if localhost/loopback DNS addresses will work based on the container's networking configuration.

  • Removes the localhostDNSWarning function from the CLI client
  • Eliminates client-side DNS validation for localhost/loopback addresses
  • Removes associated test cases and golden test files

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
cli/command/container/create.go Removes DNS validation logic and function
cli/command/container/create_test.go Removes test cases for localhost DNS warnings
cli/command/container/testdata/container-create-localhost-dns.golden Removes expected warning output for IPv4 localhost DNS
cli/command/container/testdata/container-create-localhost-dns-ipv6.golden Removes expected warning output for IPv6 localhost DNS

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@austinvazquez austinvazquez merged commit 6d35115 into docker:master Oct 6, 2025
97 of 99 checks passed
@thaJeztah thaJeztah deleted the remove_localhostDNSWarning branch October 6, 2025 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants