Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker run -m 100MB while docker stats show a limit of 104.9 MB #13

Closed
allencloud opened this issue Apr 5, 2016 · 0 comments
Closed

Comments

@allencloud
Copy link
Contributor

related to moby/moby#21765

In docker master, docker uses go-unit to traslate 100MB in to bytes: https://github.com/docker/docker/blob/master/runconfig/opts/parse.go#L163

As a result, 100MB input is dealed with use of RAMInBytes, it becomes 100MiB=104857600=104.9MB. I think this will confuse user.

And what confuses me is that does RAMInBytes have some special meanings?
People's 1MB in RAM means 1024_1024_1024 bytes=1MiB?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant