I tried to limit the maximum memory docker container can use like:
docker run -m --memory=512m
And I'm getting
invalid argument "--memory=512m" for "-m, --memory" flag: invalid size: '--memory=512m'
I couldn't find any examples in the documentation Docker Doc
You must have a flag and value with a space between them. You must also specify the image name in your command
docker run -m 512m {{IMAGE}}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.