Compose: Support `runtime` in v3.x compose files

Created on 30 Sep 2018  路  15Comments  路  Source: docker/compose

Description of the issue

The runtime option exists in v2.3, but not v3.x.

formav3 stale

Most helpful comment

I am not particular how it is implemented, but I would really appreciate using compose v3.X with CUDA GPU containers. My current choice is either DC.yml v2.X files, or Makefiles.

All 15 comments

The lack of runtime selection it is creating many portability problems at Docker build time. See https://github.com/docker/app/issues/241#issuecomment-437362287

I am not particular how it is implemented, but I would really appreciate using compose v3.X with CUDA GPU containers. My current choice is either DC.yml v2.X files, or Makefiles.

This is likely now OBE given how nvidia has altered nvidia-docker, see #6691

That is... assuming folks were only using runtime for nvidia-docker...

I was interested in it for OCI hooks personally, but have ended up not going with docker-compose anyways, so this sort of fell off my plate. Guidance for continuing this is over on #6240.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed because it had not recent activity during the stale period.

Why is it closed?

Why is it closed?

Most of the discussion has moved to #6691 since the API changed with newer versions of docker/nvidia-docker, breaking even v2.3 (without adding deprecated/legacy packages).

Why is it closed?

Most of the discussion has moved to #6691 since the API changed with newer versions of docker/nvidia-docker, breaking even v2.3 (without adding deprecated/legacy packages).

Thanks U

Is there a workaround for this? I'd like to use the runtime parameter to configure specific containers to run with runsc (gVisor).

Most of the discussion has moved to #6691 since the API changed with newer versions of docker/nvidia-docker, breaking even v2.3 (without adding deprecated/legacy packages).

But what if i want to use another runtime in my docker-compose files? I e.g. am trying to use Kata as my runtime, but would like to use features from v3.x as well. Am stuck with v2.3 to set my runtimes.

v2 and v3 formats are being merged: https://github.com/docker/compose/pull/7588. This should enable you to use runtime key (for now) in combination with newer features 馃檪

PR to support runtime in v3 spec officially: https://github.com/compose-spec/compose-spec/pull/102

Glad to see some progress on this! Specifying runtime is a major blocker for us that keeps us on v2.

@leoluk if you try any 1.27.x release, you will be able to use v2/v3 functionality at the same time (which includes runtime).

Was this page helpful?
0 / 5 - 0 ratings