Compose: Please provide docker-compose alternative for docker run --runtime=some-runtime argument

Created on 9 Nov 2017  路  5Comments  路  Source: docker/compose

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 ...
areconfig kinfeature

Most helpful comment

@shin- @flx42 I have just achived this function, please have a look at my pull request #5405

All 5 comments

@shin- I can help test this.

@flx42 Thanks! I'll make sure to ping you on the PR.

@shin- @flx42 I have just achived this function, please have a look at my pull request #5405

@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.

@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.

Was this page helpful?
0 / 5 - 0 ratings