How to run the garbage collection tool with a docker container?

I’m trying out Seafile in a docker container, but I’m not sure how to run the garbage collection tool. It says to stop the Seafile server before running, but I have to stop the containers to stop the server. So how do I run if the docker container doesn’t exist? Thanks

I guess my brain wasn’t working. I assume I could run the container but with a bash shell as the entrypoint and then run the garbage collector.

Does the enterprise version support garbage collection while the server is running?

You can run the garbage collection inside the container manually, but you can aswell do something like this:
docker exec seafile /opt/seafile/seafile-server-latest/ -t 1 --rm-fs