-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
shm-size not *bibytes? #13096
Comments
I'm almost certain our logic is identical to Docker for parsing this (we reuse their parsing package), so I'd go with this being a documentation issue. |
The error message, "... only have 953 MB [mebibytes] allocated", suggests that Docker is allocating 1 GiB (1024^3) instead of 1 GB (1000^3) as its documentation states. It might instead be that Podman is computing the required size, "needs at least 1 GB", as 1 GiB. Bottom line: The same run parameters for the same image worked in Docker but didn't in Podman. |
Something is amiss.
|
Fixes: containers#13096 Signed-off-by: Daniel J Walsh <[email protected]>
Fixes: containers#13096 Signed-off-by: Daniel J Walsh <[email protected]>
Fixes: containers#13096 Signed-off-by: Daniel J Walsh <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
BTW - Thanks much for creating Podman!
Using --shm-size appears to be using gigabytes instead of gibibytes
This might actually be a defect in Docker as the documentation states: "Unit is optional and can be b (bytes), k (kilobytes), m (megabytes), or g (gigabytes)."
Steps to reproduce the issue:
podman run --name oracleDB --shm-size=1g -p 1521:1521 -d -e ORACLE_PWD=Pr0f1t oracle/database:11.2.0.2-xe
podman logs [container id]
Describe the results you received:
Error: The container doesn't have enough memory allocated.
A database XE container needs at least 1 GB of shared memory (/dev/shm).
You currently only have 953 MB allocated to the container.
Describe the results you expected:
shm-size=1g worked for Docker Desktop for Mac with the same image.
shm-size=1.074g works for Podman.
Additional information you deem important (e.g. issue happens only occasionally):
953 Mebibytes ~= 999 Megabytes
1.074 Gigabytes ~= 1 Gibibyte
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes/No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: