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

容器安装启动失败,报:Error response from daemon: NanoCPUs can not be set, as your kernel does not support CPU CFS scheduler or the cgroup is not mounted #211

Open
Chillbon opened this issue Jan 23, 2025 · 1 comment

Comments

@Chillbon
Copy link

如题,报错误:

Container smanga-alpha Creating
Error response from daemon: NanoCPUs can not be set, as your kernel does not support CPU CFS scheduler or the cgroup is not mounted

黑群晖DSM 7.2.2-72806 Update 2系统,容器安装

compose.yaml文件:
version: "3"
services:
smanga:
image: lkw199711/smanga:alpha
deploy:
resources:
limits:
cpus: '0.5'
memory: 1G
reservations:
memory: 16M
ports:
- 9798:80
volumes:
- /volume1/docker/smanga/data:/data
- /volume1/docker/smanga/compress:/compress
- /mnt:/mnt
environment:
PUID: 1026 # 想切换为哪个用户来运行程序,该用户的uid
PGID: 101 # 想切换为哪个用户来运行程序,该用户的gid
UMASK: 022
TZ: Asia/Shanghai
restart: unless-stopped
hostname: smanga-alpha
container_name: smanga-alpha

@Chillbon
Copy link
Author

去掉上面的cpu和内存限制后,重新部署成功了。。。

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

1 participant