Running command inside app container

I am trying to perform video transcoding of all existing videos on Photoprism. This is to save the huge delay time when playing videos for the first time on Photoprism.

docker compose exec photoprism photoprism convert

However, when I tried to run this (as root) inside the app container, it says docker not found. I am on dragonfish, so the k3s stuff has all switched to docker, correct?

If I do this in the regular shell (not the app container shell), docker commands work fine.

Can someone please let me know how to run command inside app container? Thanks.

You’re wrong. Dragonfish still uses the kubernetes backend for apps. Electric Eel is the version that switched to docker. If you’re really still on dragonfish it’s no wonder the docker command fails

My bad. I am on 24.10 that’s electric eel.
It says docker not found inside all containers

If you installed a Photoprism app, then there should be a workloads pane when you click it the apps window. And on that pane there should be a Shell button for the app… “photoprism” in your case.

docker compose is command that works on the TrueNAS host, not inside a shell.

docker compose exec <stack-name> <cmd> <args> won’t work from inside an app, instead its supposed to execute the cmd in the app…

instead try

photoprism convert

after clicking that shell button.

alternatively, enter photoprism convert instead of /bin/sh

1 Like