Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): unable to use CLI within the container #4023

Closed
wants to merge 1 commit into from

Commits on Apr 30, 2024

  1. fix(cli): unable to use CLI within the container

    In the container, `OLLAMA_HOST` is set by default to `0.0.0.0` (ref: [Dockerfile#L137]), which is fine when starting the server.
    However, as a client, it is must to use `127.0.0.1` or `localhost` for requests.
    
    fix: ollama#3521 ollama#1337
    maybe fix: ollama#3526
    
    [Dockerfile#L137]: https://github.com/ollama/ollama/blob/7e432cdfac51583459e7bfa8fdd485c74a6597e7/Dockerfile#L137
    
    Signed-off-by: Kevin Cui <bh@bugs.cc>
    BlackHole1 committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    9f7f6df View commit details
    Browse the repository at this point in the history