Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(run): run command supports docker runner - #2042

Merged
kemingy merged 9 commits into
tensorchord:mainfrom
rainbend:run
Nov 3, 2025
Merged

feat(run): run command supports docker runner#2042
kemingy merged 9 commits into
tensorchord:mainfrom
rainbend:run

Conversation

@rainbend

@rainbend rainbend commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

Command Help

[user@localhost timesfm]$ envd run -h
NAME:
   envd run - Run the envd environment from the existing image

USAGE:
   envd run [command options]

CATEGORY:
   Basic Commands

OPTIONS:
   --image value                                          image name (default: PROJECT:dev)
   --name value                                           environment name
   --timeout value                                        Timeout of container creation (default: 30m0s)
   --detach                                               Detach from the container (default: false)
   --path value, -p value                                 Working directory path to be used as project root (default: ".")
   --host value                                           Assign the host address for the environment SSH access server listening (default: "127.0.0.1")
   --shm-size value                                       Configure the shared memory size (megabyte) (default: 2048)
   --cpus value                                           Request CPU resources (number of cores), such as 0.5, 1, 2
   --memory value                                         Request Memory, such as 512M, 2G
   --gpus value                                           Request GPU resources (number of gpus), such as 1, 2 (default: 0)
   --gpu-set all                                          GPU devices used in this environment, such as all, `'"device=1,3"'`, `count=2`(all to pass all GPUs). This will override the `--gpus`
   --sync                                                 Sync the local directory with the remote container (only supported in envd-server runner currently) (default: false)
   --volume value, -v value [ --volume value, -v value ]  Mount host directory into container
   --help, -h                                             show help

Use example

  1. envd run --image timesfm:dev-v2 --name timesfm
image
  1. envd run --image timesfm:dev-v2 --gpus 2 --name timesfm
image
  1. envd run --image timesfm:dev-v2 --gpu-set '"device=1,3"' --name timesfm
image
  1. envd run --image timesfm:dev-v2 --gpu-set '"device=1,3"' --gpus 4 --name timesfm
image

@rainbend rainbend changed the title feat(run): run command supports docker runner [WIP] feat(run): run command supports docker runner Oct 23, 2025
@rainbend rainbend changed the title [WIP] feat(run): run command supports docker runner feat(run): run command supports docker runner Oct 23, 2025
@rainbend

Copy link
Copy Markdown
Contributor Author

@kemingy The e2e-cli run failed, it seems we need to run it again.
image

@rainbend rainbend changed the title feat(run): run command supports docker runner [WIP] feat(run): run command supports docker runner Oct 24, 2025
@rainbend

Copy link
Copy Markdown
Contributor Author

envd run gpu settings still have bugs, currently being fixed.

@gaocegege
gaocegege requested a review from kemingy October 25, 2025 02:09

@kemingy kemingy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @rainbend, can you add an e2e test for the envd run command with docker runner?

Comment thread pkg/app/run.go
Comment on lines -229 to -234
for _, p := range ports {
if p.Port == 2222 {
continue
}

// TODO(gaocegege): Use one remote port.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @gaocegege , do you remember why we need to go through all the ports here and why the TODO shows "use one remote port"?

@rainbend rainbend changed the title [WIP] feat(run): run command supports docker runner feat(run): run command supports docker runner Nov 2, 2025
@rainbend

rainbend commented Nov 2, 2025

Copy link
Copy Markdown
Contributor Author

Hi @rainbend, can you add an e2e test for the envd run command with docker runner?

@kemingy The e2e test for evnd run has been added, please review :)

@kemingy
kemingy added this pull request to the merge queue Nov 3, 2025
Merged via the queue into tensorchord:main with commit e1ef12b Nov 3, 2025
12 checks passed
@rainbend
rainbend deleted the run branch November 3, 2025 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants