Make Docker optional - #209
Conversation
Introduced a new toggle for enabling/disabling headless mode for the browser, applicable when running without Docker. Added a tooltip for user guidance.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Got the following error when running the default To my understanding, when running normally and then turning that setting off, the system tries to look for the Two solutions would be to either (1) only show the toggleable option to users if they are running with the Error trace below: |
|
Same error when running |
|
Great catch! Fixed now by ignoring the toggle when running in docker. |
Updated the logic for the run_without_docker parameter to default to True and allow configuration from settings_config for browser_headless. This enhances flexibility in managing the application's behavior when not using Docker.
…to docker_optional
matheusmaldaner
left a comment
There was a problem hiding this comment.
Great fixes and additions that enable Magentic UI to be used by users experiencing Docker difficulties.
…to docker_optional
There was a problem hiding this comment.
Pull Request Overview
This PR makes Docker usage optional in Magentic‑UI by introducing a new run_without_docker configuration flag and adjusting related components.
- Added run_without_docker to configuration, CLI options, and backend managers.
- Updated browser defaults, team creation, and UI settings to reflect non‑Docker mode.
- Revised documentation and frontend configuration to support running in limited mode without Docker.
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/magentic_ui/tools/playwright/browser/utils.py | Changed default headless value from False to True to support non‑Docker mode. |
| src/magentic_ui/magentic_ui_config.py | Introduced run_without_docker field and reordered configuration fields. |
| src/magentic_ui/backend/web/managers/connection.py, deps.py, app.py | Propagated new run_without_docker flag to backend components. |
| src/magentic_ui/backend/teammanager/teammanager.py | Modified team creation to bypass browser resource allocation when run_without_docker is enabled. |
| src/magentic_ui/backend/cli.py, _cli.py | Added CLI options to enable running without Docker. |
| frontend/src/components/store.tsx, GeneralSettings.tsx | Updated default configuration and UI settings for non‑Docker mode and headless browser. |
| README.md | Revised instructions to include commands for running Magentic‑UI without Docker. |
Comments suppressed due to low confidence (1)
README.md:38
- [nitpick] Ensure the added non-Docker usage instructions clearly detail the functionality limitations in this mode for end users.
magentic-ui --run-without-docker --port 8081
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: matheusmaldaner <t-mkunzler@microsoft.com>
Make docker optional with command
If you are not able to setup Docker, you can run a limited version of Magentic-UI which does not have the ability to execute code, navigate files or display the browser in the interface with the command:
You can also run Magentic-UI in a command-line-interface: