10-year self-hosted discourse admin asks: why not launcher cleanup as part of rebuild?

The direct answer is you could echo y | launcher cleanup to send “y” early.

The indirect answer is the actual launcher cleanup (after is equivalent is these two commands:

docker container prune --force --filter until=24h
docker image prune --all --force --filter until=24h

and the prompt I think you’re referring to is for removing old postgres data directories:

rm -rf /var/discourse/shared/standalone/postgres_data_old*

You could drop the dependency on launcher and use those commands directly.

2 Likes