crc-org / crc

CRC is a tool to help you run containers. It manages a local OpenShift 4.x cluster, Microshift or a Podman VM optimized for testing and development purposes
https://crc.dev
Apache License 2.0
1.26k stars 242 forks source link

Add documentation that services running on the host can be connected to via the `host.crc.testing` hostname #4398

Closed bobbygryzynger closed 1 month ago

bobbygryzynger commented 1 month ago

There's an undocumented feature that services running on the host machine can be connected to from within the VM/cluster via using the host.crc.testing hostname and port of the service (e.g. host.crc.testing:3306 for a MySQL server running on the host).

This feature should be mentioned in the documentation.

gbraad commented 1 month ago

currently we are limited in what we can change to the documentation. perhaps best to add this to the wiki or FAQ

cfergeau commented 1 month ago

For consistency with podman, might be worth using/documenting host.containers.internal