You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to setup a small number of connected containers with Docker for testing. In order to assure the same behavior on any HW, I am trying to restrict the number of CPUs for each container. And I am failing at that, while using the Docker-plugin. I have tried five ways to achieve my goal. For details see the following table and comments in the example file below.
passing raw argument to instance
setting provider options via provider_options
setting the argument via "cpus" in platform's details
setting provider options
passing raw arguments to provider
After the creation of the container, I would like to have # docker inspect headnode | grep NanoCpus "NanoCpus": 1000000000,
instead of "NanoCpus": 0,
Is there any way how to, at least, pass raw arguments to the Docker? Or do I have to write my own Ansible script for managing Docker instances, as suggested in this example?
- - - - OS - - - -
PRETTY_NAME="Ubuntu 22.04.4 LTS"
- - - Molecule - - -
molecule 24.6.0 using python 3.10
ansible:2.17.0
default:24.6.0 from molecule
docker:2.1.0 from molecule_docker requiring collections: community.docker>=3.0.2 ansible.posix>=1.4.0
Hi, I am trying to setup a small number of connected containers with Docker for testing. In order to assure the same behavior on any HW, I am trying to restrict the number of CPUs for each container. And I am failing at that, while using the Docker-plugin. I have tried five ways to achieve my goal. For details see the following table and comments in the example file below.
After the creation of the container, I would like to have
# docker inspect headnode | grep NanoCpus
"NanoCpus": 1000000000,
instead of
"NanoCpus": 0,
Is there any way how to, at least, pass raw arguments to the Docker? Or do I have to write my own Ansible script for managing Docker instances, as suggested in this example?
molecule.yml
The text was updated successfully, but these errors were encountered: