Skip to main content

memory_limit

Function memory_limit 

Source
pub fn memory_limit(m: &str) -> Result<String, String>
Expand description

Translate a docker memory size (512m, 8g, 1073741824) to incus’ units (512MiB, 8GiB, bytes). Docker’s units are binary, so g and GB are GiB. incus’ binary units (8GiB) and 50% pass through.