如何添加启动命令
在构建沙箱模板时,您可以使用-c 选项指定启动命令:
Bash
通过配置文件
您也可以在运行ppio-sandbox-cli template build 命令的同一目录下的 ppio.toml 文件内指定启动命令。
Toml
日志
您可以使用命令行工具查询沙箱启动命令的日志:Bash
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
-c 选项指定启动命令:
ppio-sandbox-cli template build -c "<your-start-command>"
ppio-sandbox-cli template build 命令的同一目录下的 ppio.toml 文件内指定启动命令。
template_id = "0r0efkbfwzfp9p7qpc1c"
dockerfile = "ppio.Dockerfile"
template_name = "my-agent-sandbox"
start_cmd = "<your-start-command>"
ppio-sandbox-cli sandbox logs <sandbox-id>