LinMinquan's Blog

Experience technology to change life

怎样清理 discourse 服务器的空间

环境:Ubuntu 18.04

Discourse 是用 Docker 部署的,会有些 image 和 container 没有在使用,但占用着空间,这时可以把它们清掉

cd /var/discourse
./launcher cleanup

下图是跑 ./launcher cleanup 时的提示, it will purge all images not in use.

删除完后就只剩下一个 image 和一个 container 了,那个 image 跟那个 container 是关联的

参考链接:

  1. Stuck in a loop of freeing up space and filling it up again when rebuilding

Share