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

如何限制docker容器使用内存 #229

Open
rehack opened this issue Oct 21, 2024 · 2 comments
Open

如何限制docker容器使用内存 #229

rehack opened this issue Oct 21, 2024 · 2 comments

Comments

@rehack
Copy link

rehack commented Oct 21, 2024

使用了一键脚本bash -c "$(curl --insecure -fsSL https://ddsrem.com/xiaoya_install.sh)"安装了xiaoya alist和emby
想知道如何限制alist或emby的docker容器的内存?
我知道docker可以使用-m参数来设置,但是使用一键脚本好像不能配置这个参数,我应该怎么操作?

@yanlongqi
Copy link

yanlongqi commented Nov 10, 2024

wget https://ddsrem.com/xiaoya_install.sh 把 xiaoya_install.sh 下载下来,然后vim xiaoya_install.sh打开,
你就看到熟悉的docker create 语句,添加内容docker 的 -m 参数, xiaoya_install.sh 给个x权限执行就行了

@rehack
Copy link
Author

rehack commented Nov 10, 2024

@yanlongqi 并没有看到docker相关的
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants