Share feedback
Answers are generated based on the documentation.

docker sandbox create opencode

内容説明Create a sandbox for opencode
利用方法docker sandbox create opencode WORKSPACE [EXTRA_WORKSPACE...]
アクセスレベル: 試験的
必要条件: Docker Desktop 4.61 およびそれ以降

内容説明

Create a sandbox with access to a host workspace for opencode.

The workspace path is required and will be exposed inside the sandbox at the same path as on the host. Additional workspaces can be provided as extra arguments. Append ":ro" to mount them read-only.

Use 'docker sandbox run SANDBOX' to start opencode after creation.

利用例

Create an OpenCode sandbox in the current directory

$ docker sandbox create opencode .

Create with an absolute path

$ docker sandbox create opencode /home/user/my-project

Create and then run

$ docker sandbox create --name my-opencode opencode ~/my-project
$ docker sandbox run my-opencode