

Whatever distro you pick will have instructions for where and how to install the drivers, if it doesn’t do so for you during the install. Ubuntu is probably most likely to do so easiest. I prefer Fedora for other reasons, which is also easy to get nvidia working, but sightly less easy than Ubuntu where it’s a single checkbox during OS install.
That’s working as intended; as the compose docs state, the command passed by
run
overrides the command defined in the service configuration, so it wouldn’t normally be possible to actually shut down all the containers and then usedocker compose run
to interact with one of them. Run doesn’t start anything up in the container other than the command you pass to it.I’m not familiar with funkwhale, but they probably meant either to (a) shut down all the containers except postgres so that running
pg_dump
has something to connect to, or (b) useexec
as you have done.Personally, I do what you did, and use
exec
most of the time to do database dumps. AFAIK, postgres doesn’t require that all other connections to it are closed before usingpg_dump
. It begins a transaction at the time you run it, so it’s not interfering with anything else going on while it produces output (see relevant SO answer here). You could probably just leave your entire funkwhale stack up when you usedocker compose exec
to runpg_dump
.