Could not resolve host: host.docker.internal

Issue Summary

In my development setup I want to make a HTTP GET request zu a service on the host (of the container)

$response = wp_remote_get("http://host.docker.internal:7171/foo

and get this error msg: ERROR cURL error 6: Could not resolve host: host.docker.internal

Troubleshooting Questions

Is it possible to plugin some extra docker configuration to startup the container, similar to what is described here?

See also “I want to connect from a container to a service on the host” here:

System Details

Using Local 6.4.1 on macos 11.6

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.