-
Notifications
You must be signed in to change notification settings - Fork 40
Update Docker container content #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughUpdated documentation for container management: replaced context-menu actions, removed a tip, added a health indicator and integrated it into container controls, reworked path-mapping examples, and standardized formatting/spacing in examples. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI as Unraid WebUI
participant Container
participant Docs as Documentation (Health / Links)
rect rgb(240,248,255)
User->>UI: Open container context menu
note right of UI: Menu shows\nConsole, Stop, Pause,\nRestart, Logs, Edit,\nRemove, Project Page,\nSupport, More Info
end
alt Choose Console
User->>UI: Select Console
UI->>Container: Open shell session
else Choose Stop/Pause/Restart
User->>UI: Select Stop/Pause/Restart
UI->>Container: Send stop/pause/restart signal
Container-->>UI: Report new state
else View Logs/Edit
User->>UI: Select Logs/Edit
UI->>Container: Fetch logs / open editor
else Open Project/Support
User->>UI: Select Project Page or Support
UI->>Docs: Open external link
end
note over UI,Container: Health indicator shown in UI\n(added in docs — reflects container health)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
956cd39
to
95d0b06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
docs/unraid-os/using-unraid-to/run-docker-containers/managing-and-customizing-containers.mdx (2)
217-229
: Health indicator colors/status: align with Docker semanticsMap colors to statuses explicitly and include “Starting”. Unhealthy should not be yellow.
-You will find a colored health indicator next to each container’s icon: - -- 🟢 **Healthy**: Indicates that the container is running and responding as expected. -- 🟡 **Unhealthy**: The container is running but has failed its health check. Investigate the logs or container settings for more information. -- ⚪ **No health check**: This means no health check is configured for the container. It's common for many apps, and not necessarily a problem. +You will find a colored health indicator next to each container’s icon: + +- 🟢 **Healthy** — The container is running and responding as expected. +- 🟡 **Starting** — The health check is still initializing. +- 🔴 **Unhealthy** — The container is running but failing its health check; inspect logs and settings. +- ⚪ **No health check** — No health check is configured. Common and not necessarily a problem.
351-356
: Fix copy/paste error: missing closing quote in docker logs exampleThe command as written will fail.
- docker logs "container-name + docker logs "container-name"
🧹 Nitpick comments (1)
docs/unraid-os/using-unraid-to/run-docker-containers/managing-and-customizing-containers.mdx (1)
243-260
: Path mapping examples: simplify container paths for consistencyUsing a conventional container path like “/media” reduces cognitive load versus “/unraid_media”. Consider standardizing the first example to match later examples.
-**Media server:** - Host path: `/mnt/user/media` - Container path: `/unraid_media` - - In the app, set your media library location to `/unraid_media`. +**Media server:** + Host path: `/mnt/user/media` + Container path: `/media` + + In the app, set your media library location to `/media`.Also consider adding “set this mapping read‑only if your app doesn’t need to write” to nudge safer defaults.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
static/img/Dockerguide-controlling.png
is excluded by!**/*.png
📒 Files selected for processing (1)
docs/unraid-os/using-unraid-to/run-docker-containers/managing-and-customizing-containers.mdx
(2 hunks)
🔇 Additional comments (1)
docs/unraid-os/using-unraid-to/run-docker-containers/managing-and-customizing-containers.mdx (1)
56-66
: Internal link hygiene: verify relative paths and image asset existPrevious verification attempt failed with a Python SyntaxError; run the corrected script below from the repo root and paste its output.
- ../manage-storage/shares.mdx (Line 56)
- ../../system-administration/secure-your-server/securing-your-connection.mdx (Line 40)
- ../customize-your-experience/plugins.mdx (Lines 271, 280)
- /img/Dockerguide-controlling.png -> static/img/Dockerguide-controlling.png
#!/usr/bin/env bash set -euo pipefail F='docs/unraid-os/using-unraid-to/run-docker-containers/managing-and-customizing-containers.mdx' python3 - <<'PY' import os, re, sys f = os.path.join('docs','unraid-os','using-unraid-to','run-docker-containers','managing-and-customizing-containers.mdx') if not os.path.exists(f): print("ERROR: source file not found:", f); sys.exit(1) text = open(f, encoding='utf-8').read() # 1) Check relative markdown links (excluding http/mailto) links = [] for m in re.finditer(r'\]\((?!https?://)(?!mailto:)([^)#\s]+)', text): links.append((m.group(1), m.start())) missing = [] for href, pos in links: if href.startswith('/img/'): p = os.path.join('static', href.lstrip('/')) else: p = os.path.normpath(os.path.join(os.path.dirname(f), href)) if not os.path.exists(p): missing.append((href, p, pos)) print("Relative links found:", len(links)) if missing: print("MISSING targets:") for href, p, pos in missing: print(f" - {href} -> {p} (at byte {pos})") sys.exit(1) else: print("All relative links resolve.") # Explicit image check img_path = os.path.join('static', 'img', 'Dockerguide-controlling.png') print("Explicit image check:", img_path, "exists=", os.path.exists(img_path)) # 2) Quick sanity: find docker command lines with odd number of double quotes odd = [] for i, line in enumerate(text.splitlines(), 1): if 'docker ' in line and line.strip().startswith('docker'): if line.count('"') % 2: odd.append((i, line.strip())) if odd: print("Potential unbalanced quotes:") for i, l in odd: print(f" Line {i}: {l}") sys.exit(2) else: print("No unbalanced quotes detected in docker command snippets.") PY
| **WebUI** | Opens the container's web interface in a new browser tab (if available). | | ||
| **Console** | Opens a command-line interface to interact with the container directly. | | ||
| **Stop** | Stops the running container. | | ||
| **Pause** | Pauses the container, temporarily halting all processes. | | ||
| **Restart** | Restarts the container, applying any configuration changes. | | ||
| **Logs** | Shows the container's log output for troubleshooting. | | ||
| **Edit** | Change container settings, such as port or volume mappings. Changes apply immediately after saving. | | ||
| **Remove** | Deletes the container. You can choose to remove just the container or also delete its image. | | ||
| **Project Page** | Opens the container's project page for documentation and support. | | ||
| **Support** | Provides access to support resources and help for the container. | | ||
| **More Info** | Displays additional information about the container and its configuration. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Context menu options: clarify state- and template-specific availability; tweak “Restart” wording
- The menu is context-sensitive. “Start” and “Update” may appear (or disappear) based on state; “Project Page”, “Support”, and “More Info” depend on the template metadata.
- “Restart … applying any configuration changes” is misleading; template changes apply when you Edit → Save (container is re-created), not on a plain restart.
Apply this minimal copy edit:
-| **Restart** | Restarts the container, applying any configuration changes. |
+| **Restart** | Restarts the container. Template changes are applied when you Edit and Save the container. |
-| **Project Page** | Opens the container's project page for documentation and support. |
-| **Support** | Provides access to support resources and help for the container. |
-| **More Info** | Displays additional information about the container and its configuration. |
+| **Project Page** | Opens the container's project page (if available). |
+| **Support** | Opens support resources for the container (if available). |
+| **More Info** | Shows additional information about the container (if available). |
Optional: add a sentence below the table noting options vary by container state (running vs stopped) and template metadata.
🏁 Script executed:
#!/bin/bash
set -euo pipefail
TARGET="docs/unraid-os/using-unraid-to/run-docker-containers/managing-and-customizing-containers.mdx"
rg -n --hidden --no-ignore --line-number "WebUI" || true
if [ -f "$TARGET" ]; then
sed -n '190,230p' "$TARGET"
else
echo "File not found: $TARGET"
fi
Length of output: 5908
Context menu options: clarify state- and template-specific availability; tweak “Restart” wording
Menu is context-sensitive; “Restart” should not imply template/config changes are applied — those take effect when you Edit → Save (container is re-created).
-| **Restart** | Restarts the container, applying any configuration changes. |
+| **Restart** | Restarts the container. Template changes are applied when you Edit and Save the container. |
-| **Project Page** | Opens the container's project page for documentation and support. |
-| **Support** | Provides access to support resources and help for the container. |
-| **More Info** | Displays additional information about the container and its configuration. |
+| **Project Page** | Opens the container's project page (if available). |
+| **Support** | Opens support resources for the container (if available). |
+| **More Info** | Shows additional information about the container (if available). |
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| **WebUI** | Opens the container's web interface in a new browser tab (if available). | | |
| **Console** | Opens a command-line interface to interact with the container directly. | | |
| **Stop** | Stops the running container. | | |
| **Pause** | Pauses the container, temporarily halting all processes. | | |
| **Restart** | Restarts the container, applying any configuration changes. | | |
| **Logs** | Shows the container's log output for troubleshooting. | | |
| **Edit** | Change container settings, such as port or volume mappings. Changes apply immediately after saving. | | |
| **Remove** | Deletes the container. You can choose to remove just the container or also delete its image. | | |
| **Project Page** | Opens the container's project page for documentation and support. | | |
| **Support** | Provides access to support resources and help for the container. | | |
| **More Info** | Displays additional information about the container and its configuration. | | |
| **WebUI** | Opens the container's web interface in a new browser tab (if available). | | |
| **Console** | Opens a command-line interface to interact with the container directly. | | |
| **Stop** | Stops the running container. | | |
| **Pause** | Pauses the container, temporarily halting all processes. | | |
| **Restart** | Restarts the container. Template changes are applied when you Edit and Save the container. | | |
| **Logs** | Shows the container's log output for troubleshooting. | | |
| **Edit** | Change container settings, such as port or volume mappings. Changes apply immediately after saving. | | |
| **Remove** | Deletes the container. You can choose to remove just the container or also delete its image. | | |
| **Project Page** | Opens the container's project page (if available). | | |
| **Support** | Opens support resources for the container (if available). | | |
| **More Info** | Shows additional information about the container (if available). | |
🤖 Prompt for AI Agents
In
docs/unraid-os/using-unraid-to/run-docker-containers/managing-and-customizing-containers.mdx
around lines 205–215, the context menu entries need clarification: mark that the
menu is context-sensitive (some options only appear for running containers,
others only for templates), update the “Restart” line to avoid implying template
changes are applied (reword to indicate it simply restarts the running
container), and add a short note that template/config changes take effect only
after Edit → Save (which recreates the container); also indicate state-specific
availability where relevant (e.g., Console/Logs only for running containers,
Edit/Remove/More Info available for stopped or running, Project Page/Support
when metadata present).
Before Submitting This PR, Please Ensure You Have Completed The Following:
Summary by CodeRabbit