Skip to content

ipv6 in apps with a dependency like postgres or other db #4857

@dimagsv

Description

@dimagsv

IPv6 isn't working in a WordPress Docker container. For example, running the following command in the container produces the following result

$ curl -vk https://ipv6.google.com

  • Host ipv6.google.com:443 was resolved.
  • IPv6: 2a00:1450:4025:804::71, 2a00:1450:4025:804::66, 2a00:1450:4025:804::65, 2a00:1450:4025:804::8a
  • IPv4: (none)
  • Trying [2a00:1450:4025:804::71]:443...
  • Immediate connect fail for 2a00:1450:4025:804::71: Network is unreachable
  • Trying [2a00:1450:4025:804::66]:443...
  • Immediate connect fail for 2a00:1450:4025:804::66: Network is unreachable
  • Trying [2a00:1450:4025:804::65]:443...
  • Immediate connect fail for 2a00:1450:4025:804::65: Network is unreachable
  • Trying [2a00:1450:4025:804::8a]:443...
  • Immediate connect fail for 2a00:1450:4025:804::8a: Network is unreachable
  • Failed to connect to ipv6.google.com port 443 after 12 ms: Could not connect to server
  • closing connection #0
    curl: (7) Failed to connect to ipv6.google.com port 443 after 12 ms: Could not connect to server

It works correctly in containers of other applications, such as Open-speed-test.
I don't know if this is a problem with the application or the container.
On the host, in the file /mnt/.ix-apps/docker/containers/[identifier]/hosts, I found a difference between containers that do and don't support IPv6. The containers that support IPv6 have two lines like

172.16.3.2 90ae8352f620
fdd0:0:0:2::2 90ae8352f620

Containers that don't support IPv6 have only one of the two lines

172.16.4.3 98a4cba1cbfd

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions