43

While following the docker tutorial, I ran into a problem while deploying a stack with the docker stack deploy command. The most information on the error I managed to obtain was from running the docker stack ps command, which displays a table with an Error column: docker stack ps output

This is not a lot of information, even the message is truncated to fit in the table. I have already resolved the original problem but for the future I would like to know: how can I view the complete error message? How would I go about reading the logs?

kamilk
  • 3,829
  • 1
  • 27
  • 40

1 Answers1

70

You need to use below command for the same

docker stack ps --no-trunc

You can also find this in the command help by running the --help flag:

$ docker stack ps --help

Usage:  docker stack ps [OPTIONS] STACK

List the tasks in the stack

Options:
  -f, --filter filter   Filter output based on conditions provided
      --format string   Pretty-print tasks using a Go template
      --no-resolve      Do not map IDs to Names
      --no-trunc        Do not truncate output
  -q, --quiet           Only display task IDs
Mr. Duhart
  • 927
  • 12
  • 11
Tarun Lalwani
  • 142,312
  • 9
  • 204
  • 265