Error when trying to run sandbox example?
Maintainers usually reply within 1 day
@dgageot is already working on this.
Since Oct 21, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
Start with examples/sandbox_agent.yaml and trace how docker-agent reads the sandbox list and expects the sbx ls --json output to be shaped. Reproduce with the versions and command in the report, then compare the returned array with the expected { sandboxes: [] } object. Done when the reported error is resolved for the documented command.
Written by the indexing model from the issue text.
Description
Good day,
Apologies in advance, this is most likely a user-error, but I'm not sure where else to get assistance with this. When trying to run the sandbox_agent.yaml from the examples folder, I'm getting the error: Error: decoding sandbox list: json: cannot unmarshal array into Go value of type struct { Sandboxes []sandbox.Existing "json:\"sandboxes\"" }.
It looks like docker-agent is expecting the json in format { sandboxes: [] } but running sbx ls --json returns only the array without the sandboxes "wrapper".
Additional Information:
- docker-agent v1.151.0 (Homebrew)
- sbx version v0.49.1 c5b19951af121b439800029695f88bf1139a0b0b
- command run:
docker-agent run ./examples/sandbox_agent.yaml
Any ideas where i could be going wrong? Thank you!
- Dominant language
- Go
- Stars
- 4.7k
- Forks
- 565
- Avg merge
- 18h 52m
- Merged PRs (30d)
- 221
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/docker-agent
-
edit_file diff rendering panics on invalid UTF-8 textPossibly taken @TDnorthgarden claimed this today. Openarea/tui
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
docker/docker-agent#4955 ·
Maintainers usually reply within 1 day
-
A setting to turn off the models.dev catalog download (offline and strict-network use)Possibly taken @3431481073 claimed this 19 days ago. Openarea/config area/models
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
docker/docker-agent#4714 ·
Maintainers usually reply within 1 day
-
`edit_file` silently edits the first match when `oldText` occurs more than oncePossibly taken @dwin-gharibi claimed this 103 days ago. Openarea/tools
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
docker/docker-agent#3929 · 2 comments ·
Maintainers usually reply within 1 day
-
area/api area/runtime
Difficulty 4/5 3-5 days Newbie friendliness 48/100
docker/docker-agent#4951 ·
Maintainers usually reply within 1 day
-
area/agent area/cli area/runtime
Difficulty 4/5 3-5 days Newbie friendliness 55/100
docker/docker-agent#4947 ·
Maintainers usually reply within 1 day
All issues in docker/docker-agent
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
OneBusAway/maglev#2145 ·
Maintainers usually reply within 2 days
-
priority/medium status/ready type/chore
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
discobox-ai/discobox#1357 ·
Maintainers usually reply within 1 day
-
TestPseudoLocaleRemote fails now and then: it types the code before the laptop asks for itPossibly taken @fzn0x claimed this today. Openbug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
enhancement ui/ux
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jbigler/railswitch#243 ·
Maintainers usually reply within 1 day
-
Helm probes fail when DCGM Exporter requires TLS client certificatesPossibly taken @git-jxj claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NVIDIA/dcgm-exporter#775 ·
Maintainers usually reply within 1 day