-
Currently the Docker container has 2GB memory and 1GB of swap. How can I increase it? I've tried to add
The error which I'm getting (which doesn't tell what's wrong):
It only fails when added I'm using:
I've upgraded to
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
It may not be your issue but please check your configuration for these settings. From the documentation:
So, if I got it right, you're asking for a container with 4MB, without swap. From a quick test with 4096 for both settings without units, I'm getting:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
My issue was that memory and swap were limited by the Docker CE Desktop. After changing in the app, the changes in the code worked: To debug, run Here is the example of
|
Beta Was this translation helpful? Give feedback.
My issue was that memory and swap were limited by the Docker CE Desktop. After changing in the app, the changes in the code worked:
To debug, run
molecule --debug create
which calls/usr/local/lib/python*/site-packages/molecule_docker/playbooks/create.yml
which callsdocker_container
role (although not all the params are passed through).Here is the example of
molecule/default/molecule.yml
: