-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support docker compose for "the hard way" #19
Comments
It is necessary if your host machine's However
Indeed. |
Actually I think this may also be worked around by adding |
@EtiennePerot Unfortunately that does not help
Please don't forget to push v0.8.0 to the hub ;) |
With v0.8.0 and that cgroup valve deactivated I get:
I guess one would need to autoinstall necessary commandline tools like iputils-ping ? |
Ah yes, sorry I forgot to push v0.8.0 to the Open WebUI site. Done.
Yes, you should deactivate the valve if your system doesn't have cgroups v2, per issue #14.
If you get all the way to an error like " |
Update here: Once google/gvisor@6adc072 makes it into a gVisor release, the need for the /proc mount will go away, so this will make it possible to use Docker Compose for "the hard way". I will leave this issue open until a docker compose file is documented as well. |
Hey, just the issue I was looking for, as I am using OpenWebUI's docker-compose. Guess I will be watching this issue too. |
This is no longer required as of gVisor release 20241104. Updates issue #19.
Done now that the gVisor release no longer requires this. The setup docs now also have a minimal Docker compose file for reference. |
I have downloaded the latest gvisor and installed it for docker so this works: I have also applied the minimal docker compose changes but this results in
|
Seems like docker compose is missing: |
@jmtatsch The latest code no longer checks for procfs, so if you still get a "procfs is obstructed" error, you are using an old version of the tool/function. Please update it. I haven't created a new release out of it yet, so use the code directly from GitHub: |
Note also that you cannot use gVisor to run the Open WebUI container itself, because otherwise the code execution tool/function running within wouldn't work (gVisor doesn't support running inside gVisor itself). The Open WebUI container needs to run with the default container runtime, not |
Works like a charm with the updated code. Thank you. |
Works for me too. |
Is your feature request related to a problem? Please describe.
As a forgetful prosumer I always forget the docker calls to launch my services but don't have my own kubernetes cluster ;)
I simply define my services in docker-compose files which works well enough for me.
Describe the solution you'd like
I would like to amend the tutorial with the commands for docker compose or add a sample docker-compose.yml to bring up a working open-webui instance prepared for code execution.
Own work
I looked up how to transform all these docker flags into docker compose and this is what i came up with:
The only flag that I didn't manage to set in docker compose is
bind-recursive=disabled for procfs
Is that absolutely necessary? Seems like that isn't possible yet in docker-compose yet docker/compose#11792
Once the serivce is up, I ask it to curl a site and it errors out like this:
Environment needs setup work: /sys/fs/cgroup/cgroup.subtree_control not found; make sure you are using cgroups v2
but I guess that might be issue #14 .
The text was updated successfully, but these errors were encountered: