0

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

0

1 Answer 1

2

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}}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.