Skip to content

Conversation

@kinesiatricssxilm14
Copy link
Contributor

Description

Add Docker mode

More Information

Add 5 parameters:

$ trae-cli run --help
Usage: trae-cli run [OPTIONS] [TASK]

Run is the main function of trae. it runs a task using Trae Agent. Args:
tasks: the task that you want your agent to solve. This is required to be in
the input model: the model expected to be use working_dir: the
working directory of the agent. This should be set either in cli or in the
config file

Return: None (it is expected to be ended after calling the run function)

Options:
--docker-image TEXT Specify a Docker image to run the task in a
new container
--docker-container-id TEXT Attach to an existing Docker container by ID
--dockerfile-path FILE Absolute path to a Dockerfile to build an
environment
--docker-image-file FILE Path to a local Docker image file (tar
archive) to load.
--docker-keep BOOLEAN Keep or remove the Docker container after
finishing the task

@CLAassistant
Copy link

CLAassistant commented Sep 1, 2025

CLA assistant check
All committers have signed the CLA.

@chao-peng chao-peng merged commit cc33769 into bytedance:main Sep 3, 2025
3 checks passed
JasonHonKL pushed a commit to JasonHonKL/trae-agent that referenced this pull request Sep 9, 2025
* Add Docker mode

* Docker mode update

* fix docker mode for ci error

* Simplify Docker mode and update README
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.

3 participants