Run docker compose commands

Hello,

i just installed teslamate on my truenas scale electric eel with custom yaml app.
It worked just fine.
Now i wanted to restore my data.
To do this, i have to run docker compose commands.
How can i run the commands?

At the restore section.

Thank you

Just run the commands

You might need sudo or might not

If the apps were installed by Dockge you could just run the commands by cding into the appropriate directory

But TrueNAS apps use a fancier invocation to docker compose, and I don’t think it’s work.

as far as I have tested docker commands just work under Scale.

Thank you.
Where do i find the folder, i have to be in in order to run the commands?

root@titan[~]# docker ps
CONTAINER ID   IMAGE                                     COMMAND                  CREATED       STATUS                 PORTS                                              NAMES
39389c07227f   louislam/uptime-kuma:2.0.0-beta.0         "/usr/bin/dumb-init …"   2 weeks ago   Up 2 weeks (healthy)   3001/tcp, 0.0.0.0:31050->31050/tcp                 ix-uptime-kuma-uptime-kuma-1
3fede0915ac0   ghcr.io/analogj/scrutiny:v0.8.1-omnibus   "/init"                  2 weeks ago   Up 2 weeks (healthy)   0.0.0.0:31054->8080/tcp, 0.0.0.0:31055->8086/tcp   ix-scrutiny-scrutiny-1

So, uptime kuma container has the name ix-uptime-kuma-uptime-kuma-1

Thus I can execute an interactive bash command using:

root@titan[~]# docker exec -it ix-uptime-kuma-uptime-kuma-1 bash
root@39389c07227f:/app#

You can exec commands directly using the container name, without having to go via docker compose.

1 Like