Closed PierrunoYT closed 1 day ago
f you are encountering any problem regarding Ollama and opendevin docker image issue and you are on linux, just edit ollama service and add Environment="OLLAMA_ORIGINS=*" this is the article. This will make Ollama instance availble outside the localhost of the machine. https://medium.com/dcoderai/how-to-handle-cors-settings-in-ollama-a-comprehensive-guide-ee2a5a1beef0
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Any updates?
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for over 30 days with no activity.
Container-to-Host Communication Issue
What problem or use case are you trying to solve?
The problem is enabling communication between a containerized application and a service running on the host machine.
Describe the UX of the solution you'd like
The ideal solution would allow the containerized application to seamlessly access and interact with the service running on the host machine, as if they were on the same network.
Do you have thoughts on the technical implementation?
The current implementation involves running a web application on the host machine's localhost on a specific port. The application is started using a command that runs the server in the background and logs output to a file. Specifically, Docker networking needs to be configured to allow the container to communicate with the host's localhost.
Network Configuration:
--add-host host.docker.internal:host-gateway
.Environment Variables:
Docker Run Command:
Utilize the following docker run command to ensure proper networking setup:
Sandbox Configuration:
config.toml
file correctly specifies the sandbox type and settings, such as ssh or exec for Docker.Describe alternatives you've considered
Using Host Networking Mode:
--network="host"
mode if applicable, though it might introduce security considerations and is not supported on all operating systems.Reverse Proxy Setup:
Additional context
The
config.toml
file and environment variable settings should be verified for correct paths and network settings: