[Feature request] Add --cpuset-cpus and --cpuset-mems support for Windows containers
#51.995 aberto em 3 de fev. de 2026
Métricas do repositório
- Stars
- (71.553 stars)
- Métricas de merge de PR
- (Mesclagem média 43d 18h) (152 fundiu PRs em 30d)
Description
Description
Currently --cpuset-cpus and --cpuset-mems returns error in Windows:
https://github.com/moby/moby/blob/6bc6209b88a7a834c91f77d848e025c79e0227a1/daemon/daemon_windows.go#L141-L146
However, recently Microsoft has been working on to add support for those to Kubernetes through containerd:
- https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#windows-support
- https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/#windows-support
I already got CPU affinity working in my dev environment with Docker + containerd combination but it seems that there is some work left in microsoft/hcsshim side before this can be implemented https://github.com/kubernetes/enhancements/issues/4885#issuecomment-3841845722 so creating this as tracking issue.
Additionally https://github.com/microsoft/hcsshim/issues/2488 need to be fixed before we can use newer containerd versions.