Skip to content

(torchx/scheduler) support mounts for docker_scheduler #415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kiukchung opened this issue Mar 9, 2022 · 1 comment
Closed

(torchx/scheduler) support mounts for docker_scheduler #415

kiukchung opened this issue Mar 9, 2022 · 1 comment

Comments

@kiukchung
Copy link
Contributor

kiukchung commented Mar 9, 2022

Description

Support a runopt in docker_scheduler to specify volume mounts

Motivation/Background

Additional run option that is useful to the end user who wants to run torchx run -s local_docker with an optional volume mount for data

Detailed Proposal

  1. Need to add volume/bind-mount specifications. Options:

    1. Add to Role. As Role.mount parameter (similar to Role.port: https://github.com/pytorch/torchx/blob/main/torchx/specs/api.py#L257) or as Role.metadata
    2. Add it as runopt on the local_docker and kubernetes schedulers
  2. Add it to docker request here:

    c = DockerContainer(

Alternatives

N/A

Additional context/links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants