Replies: 1 comment 4 replies
-
Unofficial method of installation, but I'd like to know any possible solutions for this. Moving to discussion. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Report
After upgrading I am no longer able to run the open-webui docker container as a non-root user.
Description
I have been building the docker container and run it with: -user=$(id ollama -u):$(id ollama -g)
This has been the case for a while now. I don't like anything running as root even in docker containers.
I have a directory which I mount for the app data which is also owned by the ollama user, and it has been working
fine.
Bug Summary:
From what I can see, getting into both the built and downloaded container, all the files and
directories in the container are owned by root and within the startup process within the container files are copied from
one location in the container to another. When it is running as a different user then it fails with a "permission denied" error trying to copy the favicon.ico file to a new location.
Steps to Reproduce:
Run the docker container as specified in the documentation (without restart), but have it run as a different user (choose your own):
docker run -d -p 3000:8080 -user=$(id ollama -u):$(id ollama -g) --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --rm ghcr.io/open-webui/open-webui:main
Expected Behavior:
I expected it to run exactly as before (3 or 4 days prior), which it has been. I build it and run it. Not had any problems.
Actual Behavior:
Startup fails with a permission denied error. See container console log.
Environment
Reproduction Details
I entered the container with bash and did verify that everything was owned by root and the scripts were trying to copy file within the running container.
Confirmation:
Logs and Screenshots
Docker Container Logs:
And in case the markdown butchers the output...
docker_console.log
Installation Method
docker build . -t open-webui:latest
Additional Information
It seems strange to me that the copying of these files for the webserver is not done at build time.
Beta Was this translation helpful? Give feedback.
All reactions