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. There are several RAM limitations you can set for a Docker container. Note: If you still haven’t mastered Docker commands, this Docker Commands Cheat Sheet may be useful as a handy reference sheet.