How to safely run GC script against Docker community edition

I just finished getting Seafile set up with Docker (since I noticed that, starting with version 12, that will unfortunately be the only supported way of running it).

I’m confused about how to run the GC script, though. On the Seafile GC page in the admin manual, it says that online GC is only supported in the professional edition. However, if I shut down the Seafile Docker container, I can’t run the GC script in it (because the container’s not running).

What’s the right way to do this?

I believe seafile-docker project packages a gc script that does it for you.

Note you’re not supposed to shut down the whole container for running the gc, but just seafile process itself; exactly what the script does.

Oh. . . yeah. OK. I misread the page, then. I thought it was saying that the service had to be shut down before the included script was run (which was leading me to thinking of the container being shut down, and that obviously would prevent the script from being able to be run), but I didn’t actually think to read the script to see what it was doing.

Sure enough, running the script while the Docker container is running works just fine. It shut down the service, ran the GC operation, and started the service back up. Thank you!