When developing using Docker, the Ray host should point to the internal IP of your Docker host by using 'host.docker.internal' in the config file.
'host' => 'host.docker.internal',
'port' => 23517,
'remote_path' => null,
'local_path' => null,
To make sure that Ray uses the correct file path for creating the links, you will also need to setup the
remote_path is the absolute path of your project in the Docker container.
local_path is the absolute path of your project on the local file system.
docker-compose.yml you mount the volume as follows:
remote_path should be
local_path should be the absolute path to the directory where your
docker-compose.yml is located (you can find this by running
pwd inside that directoy if you are on Linux).
On Linux, you will also need to add an 'extra_hosts' parameter to your container definitions to expose 'host.docker.internal'. Please make sure you are using Docker
20.03 or higher.
extra_hosts: # <-- this is required
- "host.docker.internal:host-gateway" # <-- this is required