

The value of memory_limitshould be a positive integer followed by the suffix b, k, m, or g (short for bytes, kilobytes, megabytes, or gigabytes). The command should follow the syntax: sudo docker run -it -memory="" Within the command, specify how much memory you want to dedicate to that specific container. Alternatively, you can use the shortcut -m.

To limit the maximum amount of memory usage for a container, add the -memory option to the docker run command.

