update faq
This commit is contained in:
parent
dbe6e77472
commit
ee307937fd
1 changed files with 16 additions and 1 deletions
17
docs/faq.md
17
docs/faq.md
|
@ -130,6 +130,21 @@ systemctl restart ollama
|
||||||
|
|
||||||
### How do I use Ollama behind a proxy in Docker?
|
### How do I use Ollama behind a proxy in Docker?
|
||||||
|
|
||||||
Ollama Docker container can be configured to use a proxy by passing `-e HTTPS_PROXY=https://proxy.example.com` when starting the container. Ensure the certificate is installed as a system certificate when using HTTPS.
|
Ollama Docker container can be configured to use a proxy by passing `-e HTTPS_PROXY=https://proxy.example.com` when starting the container.
|
||||||
|
|
||||||
Alternatively, Docker daemon can be configured to use a proxy. Instructions are available for Docker Desktop on [macOS](https://docs.docker.com/desktop/settings/mac/#proxies), [Windows](https://docs.docker.com/desktop/settings/windows/#proxies), and [Linux](https://docs.docker.com/desktop/settings/linux/#proxies), and Docker [daemon with systemd](https://docs.docker.com/config/daemon/systemd/#httphttps-proxy).
|
Alternatively, Docker daemon can be configured to use a proxy. Instructions are available for Docker Desktop on [macOS](https://docs.docker.com/desktop/settings/mac/#proxies), [Windows](https://docs.docker.com/desktop/settings/windows/#proxies), and [Linux](https://docs.docker.com/desktop/settings/linux/#proxies), and Docker [daemon with systemd](https://docs.docker.com/config/daemon/systemd/#httphttps-proxy).
|
||||||
|
|
||||||
|
Ensure the certificate is installed as a system certificate when using HTTPS. This may require a new Docker image when using a self-signed certificate.
|
||||||
|
|
||||||
|
```dockerfile
|
||||||
|
FROM ollama/ollama
|
||||||
|
COPY my-ca.pem /usr/local/share/ca-certificates/my-ca.crt
|
||||||
|
RUN update-ca-certificate
|
||||||
|
```
|
||||||
|
|
||||||
|
Build and run this image:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker build -t ollama-with-ca .
|
||||||
|
docker run -d -e HTTPS_PROXY=https://my.proxy.example.com -p 11434:11434 ollama-with-ca
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue