I'm trying to connect to a MySQL host that only expose an IPv6 address from Wordpress running in Docker. I try to add the IP to the host like this:
$ docker run --name some-wordpress -e WORDPRESS_DB_HOST=<my_ipv6_addr> \
-e WORDPRESS_DB_USER=... -e WORDPRESS_DB_PASSWORD=... -d wordpress
Where <my_ipv6_addr
is the IPv6 address to the MySQL host. But wordpress fails to connect with the following error message:
Warning: mysqli::mysqli(): (HY000/2002): Invalid argument in - on line 10
Is there a way to connect Wordpress to MySQL in Docker using IPv6?