dotcloud/docker — pull request #2078 by aanand (2013-10-03 18:27:07+00:00)
Title: Container memory limit can be specified in kilobytes, megabytes or gigabytes

-m 10 # 10 bytes
-m 10b # 10 bytes
-m 10k # 10240 bytes (10 * 1024)
-m 10m # 10485760 bytes (10 * 1024 * 1024)
-m 10g # 10737418240 bytes (10 * 1024 * 1024 * 1024)

Units are case-insensitive, and 'kb', 'mb' and 'gb' are equivalent to 'k', 'm' and 'g'.