Skip to content

Update Docker docs to clarify --system flag usage#6461

Merged
matteius merged 1 commit intomainfrom
update-docker-docs-system-flag
Dec 10, 2025
Merged

Update Docker docs to clarify --system flag usage#6461
matteius merged 1 commit intomainfrom
update-docker-docs-system-flag

Conversation

@matteius
Copy link
Copy Markdown
Member

Summary

Addresses #6438 by clarifying the Docker documentation on when to use the --system flag vs. a virtual environment.

Changes

  1. Added a new section "System Installation vs. Virtual Environments in Docker" that explains:

    • When to use --system: Single-application containers following the "one process per container" principle, slim base images, simpler setup
    • When to use a virtual environment: Containers with multiple Python applications, containers that use Python-based system tools (e.g., add-apt-repository)
  2. Updated the Best Practices summary (Fix where command invocation #5) to reflect this nuanced guidance.

Context

In 2018 (PR #2762), it was recommended NOT to use --system due to concerns about breaking system Python tools. However:

For most production containers, --system is now the simpler and more efficient choice.

Closes #6438


Pull Request opened by Augment Code with guidance from the PR author

Adds a new section explaining when to use --system (single-app containers)
vs. virtual environments (containers with multiple Python apps or system tools).
Updates the best practices summary to reflect this nuanced guidance.

Closes #6438
@matteius matteius merged commit d5ece27 into main Dec 10, 2025
2 checks passed
@matteius matteius deleted the update-docker-docs-system-flag branch December 10, 2025 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker (best practices) docs recommending usage of --system

1 participant