Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为 yukid 添加设置启动的容器中 /tmp 挂载到 tmpfs 的功能 #23

Closed
taoky opened this issue Jul 7, 2020 · 2 comments · Fixed by #43
Closed

为 yukid 添加设置启动的容器中 /tmp 挂载到 tmpfs 的功能 #23

taoky opened this issue Jul 7, 2020 · 2 comments · Fixed by #43
Assignees

Comments

@taoky
Copy link
Member

taoky commented Jul 7, 2020

在新的镜像站机器上配置了 Docker 容器运行时的文件放置到单独的挂载点上(目前分配了 8G 空间),但是在运行时发现有些同步的容器会把很多数据放在 /tmp 里面(比如说 Fedora 同步会放置将近 3G 的数据在里面),而默认容器中 /tmp 没有单独的挂载点,会占用磁盘空间。

尽管可以扩容,但是或许在 yukid 设置里添加 tmpfs mount 的设定会更好一些?

@knight42
Copy link
Member

knight42 commented Jul 7, 2020

听起来似乎可以把主机的 /tmp 挂到容器里?如果可以的话可以参考下这里的配置 https://github.com/ustclug/Yuki/blob/master/cmd/yukid/README.md#repo-configurationvolumes 字段

@gaoyifan
Copy link
Member

gaoyifan commented Mar 1, 2021

如果 tmpfs 成为全局行为, 多个依赖 /tmp 的同步程序都会从中受益,减少 IO 开销。如 fedora, freebsd-pkg/ports, homebrew-bottles ...

@knight42 knight42 mentioned this issue Jan 2, 2024
@knight42 knight42 self-assigned this Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants