lunamidori5 / Midori-AI

100 stars 25 forks source link

Doesn't work with podman. #25

Open Alastor-Ripley opened 2 months ago

Alastor-Ripley commented 2 months ago

Can't use podman instead of docker despite having setup docker compatibility options and set env variables to redirect docker calls to podman, but whenever I have tried to run the installer script, I always get an error saying it can't find docker.

To Reproduce Running either the quick script or the manual setup as instructed for Linux from the subsystem website

Expected behavior The installer would send a command to docker which podman should receive and perform.

Host Info:

Additional context Not sure if I've setup the docker cli compatibility 100% correctly, however whenever I've run other docker commands to install an image (the one for the standalone local-ai for example) it works just fine using podman as if it were docker.

lunamidori5 commented 2 months ago

@Alastor-Ripley I will get working on checking to see if its the docker libs we use or something as they claim to work with podman... Thank you for this report!

lunamidori5 commented 2 months ago

@Alastor-Ripley sorry for the delay we had a server outage and am working on fixing that, deeply sorry for the delay

Alastor-Ripley commented 2 months ago

Oh no need to apologize at all, I understand. I've been told that I have the patience of a saint lol. I'm definitely not a saint but the patience part is true (unless I'm driving, then my patience goes out the window it seems) Thank you for even looking into it

lunamidori5 commented 2 months ago

@Alastor-Ripley at last our servers are back up and running, can you post some docs on podman and Ill do some reading <3

Alastor-Ripley commented 2 months ago

https://docs.podman.io/en/latest/ https://podman.io/docs

lunamidori5 commented 1 month ago

okay we are working on some new tech to remove the need and use of docker from the program, does podman support the docker sock? - @Alastor-Ripley

Alastor-Ripley commented 1 month ago

i believe so yes, here's the deocumentation on docker/podman compatability, i think it mentions that somewhere in there. https://podman-desktop.io/docs/migrating-from-docker and here: https://github.com/containers/podman/blob/main/docs/tutorials/socket_activation.md

lunamidori5 commented 1 month ago

@Alastor-Ripley can you please try this

Change the docker to your podman command

docker run -v /run/user/1000/podman/podman.sock:/var/run/docker.sock -it lunamidori5/pixelarch:subsystem /bin/bash

Once in this shell type sudo subsystem_manager and just tell me if it offers to install the subsystem

DO NOT INSTALL THE SUBSYSTEM YET

Alastor-Ripley commented 1 month ago

yes it did

lunamidori5 commented 1 month ago

@Alastor-Ripley cool Ill start work on a real fix then sadly I am going on a trip in under 6 days... =( but know Ill be work ing on this!