Docker advice for cloning plugins, etc

After a long-time Windows/git repo installation, I’ve moved to Docker (first Docker on MacOS, now Docker on Ubuntu) I have a question about best or advised practices.

I opted for docker-compose because I also have a custom theme and using a volume where I can easily add to themes.local is required.

My question is this: when adding plugins via git clone ... do you recommend that be done within the container shell:

docker-compose exec --privileged --user app app /bin/sh

or externally on the dynamic volume? Does it matter?

As per the docker FAQ you just have to do a git clone into the plugins.local directory in your volume. How you go about this doesn’t really matter as long as the permissions are correct.

I’ve personally done it both within the container and just into the volume directory on the host system. The only issue I had was setting the ownership correctly when doing it via host.

https://git.tt-rss.org/fox/ttrss-docker-compose/wiki#how-do-i-add-plugins-and-themes