Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Error when trying to run sandbox example?

オープン 初心者向け
#4,672 コメント 1 件 リアクション 1 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@dgageot がすでに取り組んでいます。

2026年10月21日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, go
領域
backend

調査の方向性

examples/sandbox_agent.yamlから始めて、docker-agentがサンドボックスの一覧をどのように読み込み、sbx ls --jsonの出力にどのような形式を期待しているかを追ってください。報告に記載されたバージョンとコマンドで再現し、返された配列を期待されるオブジェクト{ sandboxes: [] }と比較してください。報告されたエラーがドキュメントに記載されたコマンドで解消されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

area/cli

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!

主要言語
Go
スター
4.6k
フォーク
522
平均マージ
8時間 43分
マージ済み PR(30日)
239

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/docker-agent のほかの issue

docker/docker-agent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。