feat: possibility to run under podman and pasta #5291

Closed
opened 2025-11-11 16:16:26 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @dwojewod on GitHub (May 22, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

podman version 5.4.0
pasta 0^20250217.ga1e48a0-1.el9.x86_64
ollama version is 0.7.0

ss -tunlp |grep 11434
tcp LISTEN 0 4096 127.0.0.1:11434 0.0.0.0:*

ps aux |grep pasta
/usr/bin/pasta --config-net -t 3000-3000:8080-8080 --dns-forward 169.254.1.1 -u none -T none -U none --no-map-gw --quiet --netns /run/user/101016/netns/netns-77e21303-ecee-5a5f-f98d-f645d88decb3 --map-guest-addr 169.254.1.2

podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bca41a707e92 ghcr.io/open-webui/open-webui:main bash start.sh 5 minutes ago Up 5 minutes 0.0.0.0:3000->8080/tcp open-webui

Rootless container created with:
podman run -d -p 3000:8080 -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://169.254.1.2:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main

Result : No model is available to select in GUI

2025-05-22 22:54:55.296 | ERROR | open_webui.routers.ollama:send_get_request:100 - Connection error: Cannot connect to host 169.254.1.2:11434 ssl:default [Connect call failed ('169.254.1.2', 11434)] - {}

Desired Solution you'd like

No connection issue from container to host port 11434 when container network is controlled by pasta.

Alternatives Considered

No response

Additional Context

No response

Originally created by @dwojewod on GitHub (May 22, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description podman version 5.4.0 pasta 0^20250217.ga1e48a0-1.el9.x86_64 ollama version is 0.7.0 ss -tunlp |grep 11434 tcp LISTEN 0 4096 127.0.0.1:11434 0.0.0.0:* ps aux |grep pasta /usr/bin/pasta --config-net -t 3000-3000:8080-8080 --dns-forward 169.254.1.1 -u none -T none -U none --no-map-gw --quiet --netns /run/user/101016/netns/netns-77e21303-ecee-5a5f-f98d-f645d88decb3 --map-guest-addr 169.254.1.2 podman ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES bca41a707e92 ghcr.io/open-webui/open-webui:main bash start.sh 5 minutes ago Up 5 minutes 0.0.0.0:3000->8080/tcp open-webui Rootless container created with: podman run -d -p 3000:8080 -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://169.254.1.2:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main Result : No model is available to select in GUI 2025-05-22 22:54:55.296 | ERROR | open_webui.routers.ollama:send_get_request:100 - Connection error: Cannot connect to host 169.254.1.2:11434 ssl:default [Connect call failed ('169.254.1.2', 11434)] - {} ### Desired Solution you'd like No connection issue from container to host port 11434 when container network is controlled by pasta. ### Alternatives Considered _No response_ ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5291