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

Add `--no-trunc` option to `docker stack deploy` for full error messages

オープン
#6,225 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, go
領域
cli

調査の方向性

docker stack deploy の CLI エントリポイントから開始し、出力処理を既存の docker service ps --no-trunc の実装と比較します。デプロイのステータスとエラー出力を追跡し、その後、新しいオプションが完全なメッセージを保持すること、および関連する CLI テストが成功することを確認します。

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

説明

kind/feature status/0-triage
Description
Problem

When running docker stack deploy, deployment errors (especially scheduling constraint failures) are truncated in the CLI output. For example:

1/1: no suitable node (scheduling constraints not satisfied on 1 node; host-mod…
overall progress: 0 out of 1 tasks

This truncation makes it difficult to understand why a service could not be scheduled, as the most relevant part of the message is often cut off. This behavior appears to be hardcoded and does not respect terminal width or environment variables like COLUMNS.

Workarounds
  • Manually running docker service ps <service> --no-trunc after deployment
  • Inspecting tasks individually with docker inspect
  • Writing custom scripts to combine deployment and diagnostic commands

These add friction and delay in understanding deployment issues.

Proposal

Add a --no-trunc flag to docker stack deploy, similar to the one already available in docker service ps, which disables truncation of deployment status and error messages.

Other alternatives could include:

  • Respecting the actual terminal width or COLUMNS environment variable
  • Automatically disabling truncation when output is non-interactive (e.g. in CI pipelines)
  • Supporting full output when --verbose or --debug is enabled
Benefits
  • Immediate visibility into deployment failures without requiring follow-up commands
  • Better support for CI/CD pipelines where error visibility is critical
  • Makes docker stack deploy consistent with other CLI commands that support --no-trunc
Related
  • docker service ps already supports --no-trunc and behaves as expected
  • No current CLI flags exist to control truncation during stack deployment
主要言語
Go
スター
6.1k
フォーク
2.2k
平均マージ
1日 10時間
マージ済み PR(30日)
47

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

docker/cli のほかの issue

docker/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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