Skip to content

Discuss: Should docker compose run detached in usage guides? #374

@coderabbitai

Description

@coderabbitai

Context

In PR #367, a question was raised about whether docker compose up should be run in detached mode (--detach) in our usage guides.

Current Situation

The current approach uses docker compose up without the --detach flag, which runs containers in the foreground. This means:

  • Users see service logs in real-time
  • The terminal is blocked, requiring users to open a new terminal for subsequent commands
  • Users may not realize they need a new terminal to continue the guide

Proposed Alternative

Using docker compose up --detach would:

  • Start services in the background
  • Allow users to continue in the same terminal session
  • Make the walkthrough more seamless and executable in a single shell

Discussion Points

  1. Should we standardize on detached mode across all usage guides?
  2. Is there value in showing logs during startup for debugging/learning purposes?
  3. Should we provide guidance on viewing logs separately (e.g., docker compose logs -f)?
  4. What's the best user experience for documentation walkthroughs?

Please share your thoughts on the optimal approach.

References

cc: @surister @michaelkremmel @bmunkholm

Metadata

Metadata

Assignees

Labels

guidanceMatters of layout, shape, and structure.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions