You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Please provide docker-compose alternative for docker run --runtime=some-runtime argument #5360
I inspected docker-compose reference and did not find any means to provide "--runtime=some-runtime" argument for starting containers.
Please provide some documentation or add a new feature if it's currently impossible.
Main motivation:
nvidia-docker 2.0 default usage is:
docker run --runtime=nvidia ...
Reacted by acowlikeobject, Aiden Nibali, Kuang Ru, Vandan Mujadia, Konstantin Lopuhin, Adam, Clément Garnier, Serhii Cherniavskyi, Matt Vollrath, Ganesh Iyer and 3 more
@andyneff There's two things about v3. First off, its spec is driven by the docker/cli project, so changes need to happen there first before they are backported into Compose. Secondly, we don't want to introduce new parameters in v3 that aren't applicable to Swarm services, as this is what the format is specifically designed to do. I don't think this particular option is available yet, hence why we're going to keep it to v2 for the time being.
If you're not transitioning or looking to transition to Swarm mode in the near future, I'd recommend as a general rule to stick to v2 for the time being.
Activity
flx42 commentedon Nov 16, 2017
@shin- I can help test this.
shin- commentedon Nov 16, 2017
@flx42 Thanks! I'll make sure to ping you on the PR.
service add runtime option support, works with nvidia-docker2
add support for `runtime` in service definitions
add support for `runtime` option in service definitions
cuckoohello commentedon Nov 27, 2017
@shin- @flx42 I have just achived this function, please have a look at my pull request #5405
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
add support for `runtime` option in service definitions
shin- commentedon Dec 28, 2017
@andyneff There's two things about v3. First off, its spec is driven by the docker/cli project, so changes need to happen there first before they are backported into Compose. Secondly, we don't want to introduce new parameters in v3 that aren't applicable to Swarm services, as this is what the format is specifically designed to do. I don't think this particular option is available yet, hence why we're going to keep it to v2 for the time being.
If you're not transitioning or looking to transition to Swarm mode in the near future, I'd recommend as a general rule to stick to v2 for the time being.
andyneff commentedon Dec 28, 2017
@shin- Ah, thanks for the clarification. I just realized the first point and moved my comment to 5405.
I was naively trying to be "swarm" ready, but without an immediate need to, I think I will take you up on your advice and return to v2.