nerdctl: /dev/shm support is broken (Was: `What options does the --tmpfs flag in the run statement allow`)
I’m trying to a run an Oracle Database in a Docker image in a lima environment on macOS and get a lot of errors related to the shm volume.
lima nerdctl run --detach --name="oracledb" --network="oraclenet" --memory="4g" --publish="1521:1521" --volume="/dev/shm" --tmpfs="/dev/shm:rw,exec,size=1g" qualiant/database
As there is no specific documentation, I wanted to ask a few specific questions:
- Does
nerdctl
all the options--tmpfs="/dev/shm:rw,exec,size=1g"
in the--tmpfs
flag ? nerdctl
support the--memory
option but how does this relate to lima? Is it guaranteed that the container gets 4g when using the--memory
flag independently from lima?
Thank you!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (9 by maintainers)
looks like it is related to lima; lima add
uid=501,gid=1000
to the mount so you are not mouting/dev/shm
as user0
. I assume that the image user !=0
so either you need to be root in your container or mount with the same user as you container.I assume that lima using vm user to make this mount which is logic, but When I tried to force user 0 , it dosen’t wort
Do you we have a root mode in lima @AkihiroSuda @Junnplus ?