Skip to content

Please provide docker-compose alternative for docker run --runtime=some-runtime argument #5360

Closed

Description

@dmitriyse

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

Activity

  1. flx42 commented on Nov 16, 2017

    @flx42

    @shin- I can help test this.

  2. shin- commented on Nov 16, 2017

    @shin-

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

  3. added 3 commits that reference this issue on Nov 27, 2017
    6541810
    897e706
    5cf82a5
  4. cuckoohello commented on Nov 27, 2017

    @cuckoohello

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

  5. added 13 commits that reference this issue on Nov 29, 2017
    e28c195
    7065806
    5fdca05
    f700b73
    02cfa11
    76e6e16
    67f5997
    bbda4d1
    56f1d36
    317e670
    1f83cf4
    b9beda1
    e4e92dd
  6. shin- commented on Dec 28, 2017

    @shin-

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

  7. andyneff commented on Dec 28, 2017

    @andyneff

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

  8. added this to the 1.19.0 milestone on Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions