richfitz / stevedore

:cloud::rowboat::whale::cloud: Docker client for R
https://richfitz.github.io/stevedore
Other
134 stars 10 forks source link

How to specify shm size ? #66

Closed fvalenduc closed 11 months ago

fvalenduc commented 12 months ago

Is there a way to specify the size of the shared memory when starting a container with docker$container$run ? With the command line, that would be docker run ... --shm-size... I tried to find this option in the documentation but without success. Sorry If my question as already been answered somewhere else.

richfitz commented 11 months ago

This appears not to be documented, nor do I have a full example of it working - but some pointers:

It might look like passing:

host_config = list(ShmSize = jsonlite::unbox(10000000))

through to container creation or run. See this test for a similar example

fvalenduc commented 11 months ago

Indeed, host_config = list(ShmSize = jsonlite::unbox(10000000)) works perfectly well. Thanks for your rapid anwser.