Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable IPv6 on the telepresence docker network #3179

Closed
thallgren opened this issue May 12, 2023 · 0 comments · Fixed by #3183
Closed

Enable IPv6 on the telepresence docker network #3179

thallgren opened this issue May 12, 2023 · 0 comments · Fixed by #3183
Assignees

Comments

@thallgren
Copy link
Member

An apache running in a docker based intercept handler might fail with a DNS lookup failure when it dials other services in the cluster even though the DNS is resolved and returned. The reason appears to be that IPv6 isn't enabled, because when adding a network where it is, that resolves the problem.

The solution is to add IPv6 to the telepresence network, but doing that isn't straightforward because it requires that IPv6 has been enabled in /etc/docker/daemon.json, or that the network is created with an explicitly added IPv6 subnet and gateway. Let's say we create the telepresence network using --ipv6 . If it fails, I can see the following options:

  1. inform the user that ipv6 must be added to /etc/docker/daemon.json
  2. make another attempt without --ipv6, and log a warning that some DNS functionality might not be available.
  3. make another attempt, but add an explicit subnet/gateway using --subnet and --gateway flag.

Number 3 is probably the most user-friendly, but it also requires Telepresence to select a random subnet, which defeats the purpose of defining this in /etc/docker/daemon.json.

@thallgren thallgren self-assigned this May 12, 2023
@thallgren thallgren linked a pull request May 15, 2023 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant