Unit for docker module parameter 'memory_limit'

118 views
Skip to first unread message

Bk Lau

unread,
Sep 25, 2014, 5:49:21 PM9/25/14
to ansible...@googlegroups.com
Hi:

What is the syntax to specify 'memory_limit' in the docker module?

According to Docker documentation[1], its  passed
like so:
 256b, 256k,256m or  256g
 I see that according to the docker module doc its passed as 256MB? or should we follow the syntax as outlines in the Docker CLI?

An example would be nice.


Thanks,

--BK


[1]
-m, --memory=""            Memory limit (format: <number><optional unit>, where unit = b, k, m or g)

Michael DeHaan

unread,
Sep 26, 2014, 8:36:52 AM9/26/14
to ansible...@googlegroups.com
in the docs it indicates an example default of 256 MB.

The example code in question contributed with the docker modoule
suffixes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB']

The docker CLI seems a bit non-standard in the regard of just using a single letter, so this seems ok to me.

I suspect nobody has used that petabyte setting.



--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7e1b2717-a47d-4193-9647-d86d2bfab15c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages