-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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_container - missing --cpus=<value> #34320
Comments
Files identified in the description: If these files are inaccurate, please update the |
!needs_triage |
This option |
resolved_by_pr #38063 |
@benbro Could you please check if this PR works for you ? Let us know. |
@Akasurde this issue is about --cpus=value config but the PR use nano_cpus which I don't understand. |
@benbro CPU quota is called as |
@Akasurde There are different ways to limit CPU in docker with the command line. This blog says:
nano_cpus is very confusing:
Any reason not to give the user just: --cpus=value? |
Agree. nano_cpus is very confusing. Maybe you can add comment in PR itself, stating that |
Already done. |
What's the status on this? I'd be happy to help with any work to get things moving along |
There's a PR for this (#38063), which seems to be stuck. Also, there's disagreement how the interface for this should look like. |
Is there any update on this option to be available on docker_container module ? |
@hdiass so far, nothing happened. I'll work on a PR today; I would be glad if you could test it once it is ready. |
resolved_by_pr #64683 |
ISSUE TYPE
COMPONENT NAME
docker_container
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
Ansible is missing support for the docker run --cpus=. This flag is available since Docker 1.3.
The text was updated successfully, but these errors were encountered: