Skip to content

docs(inference): clarify Linux Ollama Docker binding - #1303

Merged
cv merged 2 commits into
NVIDIA:mainfrom
WuKongAI-CMU:codex/replace-972-ollama-linux-docs
Apr 3, 2026
Merged

cv merged 2 commits into
NVIDIA:mainfrom
WuKongAI-CMU:codex/replace-972-ollama-linux-docs

Conversation

@WuKongAI-CMU

@WuKongAI-CMU WuKongAI-CMU commented Apr 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • document that Linux Docker sandboxes reach Ollama via host.openshell.internal
  • explain that Ollama must bind 0.0.0.0:11434 instead of loopback for sandbox validation
  • regenerate the reference skill output for the updated inference docs

Verification

  • python3 scripts/docs-to-skills.py docs/ .agents/skills/ --prefix nemoclaw
  • make docs

Supersedes #972.

Signed-off-by: peteryuqin [email protected]

Summary by CodeRabbit

  • Documentation
    • Enhanced Local Ollama setup documentation for Linux/Docker users.
    • Added clarification on container-to-Ollama networking via host.openshell.internal:11434.
    • Included Ollama binding configuration (0.0.0.0:11434) with startup command example.
    • Documented validation behavior when Ollama uses loopback-only binding.

@coderabbitai

coderabbitai Bot commented Apr 2, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 18a15021-5e55-42c0-af4b-00f00d38d247

📥 Commits

Reviewing files that changed from the base of the PR and between 7e4f8e7 and ff43a00.

📒 Files selected for processing (2)
  • .agents/skills/nemoclaw-reference/references/inference-profiles.md
  • docs/reference/inference-profiles.md
✅ Files skipped from review due to trivial changes (1)
  • docs/reference/inference-profiles.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • .agents/skills/nemoclaw-reference/references/inference-profiles.md

📝 Walkthrough

Walkthrough

Added Linux/Docker-specific networking instructions for the "Local Ollama" section: the sandbox must reach Ollama via http://host.openshell.internal:11434 (not localhost), and Ollama must bind to 0.0.0.0:11434 (example: OLLAMA_HOST=0.0.0.0:11434 ollama serve); clarified sandbox-side validation fails if Ollama only listens on loopback.

Changes

Cohort / File(s) Summary
Local Ollama networking docs
.agents/skills/nemoclaw-reference/references/inference-profiles.md, docs/reference/inference-profiles.md
Added Linux+Docker-specific guidance: use http://host.openshell.internal:11434 from sandbox, ensure Ollama binds to 0.0.0.0:11434 (startup example provided), and note sandbox validation will fail if Ollama only listens on loopback (127.0.0.1).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 I nibbled docs in a quiet nook,
Told Ollama how the sandbox should look,
Host openshell, bind to all,
No loopback walls to make it stall,
Hooray for routes — a tidy book! 🥕✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly describes the main change: clarifying Linux Ollama Docker binding documentation, which matches the core objective of updating inference profile docs with Linux/Docker-specific networking guidance.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.agents/skills/nemoclaw-reference/references/inference-profiles.md (1)

1-1: ⚠️ Potential issue | 🟠 Major

Add the required SPDX header at the top of this Markdown file.

This file starts with a heading and is missing the required SPDX HTML-comment header block.

As per coding guidelines, "**/*.{js,cjs,mjs,ts,tsx,sh,md}: Include SPDX license header at the top of every source file ... Use ... HTML comments for Markdown files."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.agents/skills/nemoclaw-reference/references/inference-profiles.md at line
1, Add the required SPDX HTML-comment header to the top of inference-profiles.md
(above the "# Inference Profiles" heading): insert an HTML comment block
containing the SPDX copyright attribution and the SPDX-License-Identifier (e.g.,
a short copyright line and the license identifier) as specified by the repo
guidelines so the file now begins with the SPDX header comment followed by the
existing heading.
🧹 Nitpick comments (2)
docs/reference/inference-profiles.md (1)

79-82: Format this section to one sentence per source line and avoid non-list colons.

Line 79–82 and Line 88–89 split single sentences across multiple lines, and Line 82 uses “For example:” before a code block.
Please keep one full sentence per line and avoid colons unless introducing a list.

As per coding guidelines, "One sentence per line in source (makes diffs readable)." and "Colons should only introduce a list. Flag colons used as general punctuation between clauses."

Also applies to: 88-89

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/reference/inference-profiles.md` around lines 79 - 82, The paragraph
beginning "On Linux hosts that run NemoClaw with Docker, the sandbox reaches
Ollama through `http://host.openshell.internal:11434`, not the host shell's
`localhost` socket." and the following sentences should be reformatted so each
full sentence is on its own source line and colons are only used to introduce
lists; specifically break the long multi-sentence block into separate lines with
one sentence per line, remove or rewrite the standalone "For example:" so the
example intro is a complete sentence (or attach it as "Example" on its own line
without a colon), and apply the same one-sentence-per-line fix to the later
split sentence at lines 88–89 so no sentence is split across lines and no colon
is used as general punctuation.
.agents/skills/nemoclaw-reference/references/inference-profiles.md (1)

59-63: Normalize sentence-per-line formatting in this section.

Line 59–63 and Line 68–69 wrap single sentences across multiple lines; Line 62 also uses “For example:” before a code block.
Please format as one sentence per line and avoid non-list colon usage.

As per coding guidelines, "One sentence per line in source (makes diffs readable)." and "Colons should only introduce a list. Flag colons used as general punctuation between clauses."

Also applies to: 68-69

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.agents/skills/nemoclaw-reference/references/inference-profiles.md around
lines 59 - 63, The paragraph containing "On Linux hosts that run NemoClaw with
Docker, the sandbox reaches Ollama through
`http://host.openshell.internal:11434`, not the host shell's `localhost` socket.
If Ollama is already running, make sure it listens on `0.0.0.0:11434` instead of
`127.0.0.1:11434`. For example:" should be reformatted to one sentence per line
and the standalone "For example:" colon should be removed (instead place a short
sentence ending with a period before the code block); ensure the sentence that
refers to the host URL and the sentence that instructs listening on 0.0.0.0 are
each on their own lines and avoid using a colon as general punctuation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In @.agents/skills/nemoclaw-reference/references/inference-profiles.md:
- Line 1: Add the required SPDX HTML-comment header to the top of
inference-profiles.md (above the "# Inference Profiles" heading): insert an HTML
comment block containing the SPDX copyright attribution and the
SPDX-License-Identifier (e.g., a short copyright line and the license
identifier) as specified by the repo guidelines so the file now begins with the
SPDX header comment followed by the existing heading.

---

Nitpick comments:
In @.agents/skills/nemoclaw-reference/references/inference-profiles.md:
- Around line 59-63: The paragraph containing "On Linux hosts that run NemoClaw
with Docker, the sandbox reaches Ollama through
`http://host.openshell.internal:11434`, not the host shell's `localhost` socket.
If Ollama is already running, make sure it listens on `0.0.0.0:11434` instead of
`127.0.0.1:11434`. For example:" should be reformatted to one sentence per line
and the standalone "For example:" colon should be removed (instead place a short
sentence ending with a period before the code block); ensure the sentence that
refers to the host URL and the sentence that instructs listening on 0.0.0.0 are
each on their own lines and avoid using a colon as general punctuation.

In `@docs/reference/inference-profiles.md`:
- Around line 79-82: The paragraph beginning "On Linux hosts that run NemoClaw
with Docker, the sandbox reaches Ollama through
`http://host.openshell.internal:11434`, not the host shell's `localhost`
socket." and the following sentences should be reformatted so each full sentence
is on its own source line and colons are only used to introduce lists;
specifically break the long multi-sentence block into separate lines with one
sentence per line, remove or rewrite the standalone "For example:" so the
example intro is a complete sentence (or attach it as "Example" on its own line
without a colon), and apply the same one-sentence-per-line fix to the later
split sentence at lines 88–89 so no sentence is split across lines and no colon
is used as general punctuation.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: afaaf5f6-bb94-4e1a-aaab-34d089fa92e4

📥 Commits

Reviewing files that changed from the base of the PR and between 8f631ae and 7e4f8e7.

📒 Files selected for processing (2)
  • .agents/skills/nemoclaw-reference/references/inference-profiles.md
  • docs/reference/inference-profiles.md

@prekshivyas prekshivyas self-assigned this Apr 2, 2026

@prekshivyas prekshivyas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean and helpful — thanks @WuKongAI-CMU!

  • Addresses a real gap: Linux Docker users hit sandbox validation failures because Ollama binds loopback by default ✓
  • Docker binding note is accurate — host.openshell.internal is how containers reach the host ✓
  • Skills reference was stale (still had "Local Providers" umbrella section) — this correctly syncs it to match the source docs which already have the "Local Ollama" / "Experimental Local Providers" split ✓
  • Docs-only change, zero regression risk ✓
  • Verified with make docs and docs-to-skills.py per the PR description ✓

LGTM.

@prekshivyas prekshivyas left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WuKongAI-CMU pls resolve conflicts and it should be ready for merge

@wscurran

wscurran commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

✨ Thanks for submitting this pull request, which proposes a way to clarify Ollama Docker binding for Linux sandboxes in the inference documentation.

@WuKongAI-CMU
WuKongAI-CMU force-pushed the codex/replace-972-ollama-linux-docs branch from 9b09c91 to ff43a00 Compare April 3, 2026 13:06
@cv
cv merged commit 5bd75cc into NVIDIA:main Apr 3, 2026
10 checks passed
lakamsani pushed a commit to lakamsani/NemoClaw that referenced this pull request Apr 4, 2026
## Summary
- document that Linux Docker sandboxes reach Ollama via
host.openshell.internal
- explain that Ollama must bind 0.0.0.0:11434 instead of loopback for
sandbox validation
- regenerate the reference skill output for the updated inference docs

## Verification
- python3 scripts/docs-to-skills.py docs/ .agents/skills/ --prefix
nemoclaw
- make docs

Supersedes NVIDIA#972.

Signed-off-by: peteryuqin <[email protected]>

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
  * Enhanced Local Ollama setup documentation for Linux/Docker users.
* Added clarification on container-to-Ollama networking via
`host.openshell.internal:11434`.
* Included Ollama binding configuration (`0.0.0.0:11434`) with startup
command example.
* Documented validation behavior when Ollama uses loopback-only binding.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: peteryuqin <[email protected]>
Co-authored-by: Prekshi Vyas <[email protected]>
gemini2026 pushed a commit to gemini2026/NemoClaw that referenced this pull request Apr 14, 2026
## Summary
- document that Linux Docker sandboxes reach Ollama via
host.openshell.internal
- explain that Ollama must bind 0.0.0.0:11434 instead of loopback for
sandbox validation
- regenerate the reference skill output for the updated inference docs

## Verification
- python3 scripts/docs-to-skills.py docs/ .agents/skills/ --prefix
nemoclaw
- make docs

Supersedes NVIDIA#972.

Signed-off-by: peteryuqin <[email protected]>

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
  * Enhanced Local Ollama setup documentation for Linux/Docker users.
* Added clarification on container-to-Ollama networking via
`host.openshell.internal:11434`.
* Included Ollama binding configuration (`0.0.0.0:11434`) with startup
command example.
* Documented validation behavior when Ollama uses loopback-only binding.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: peteryuqin <[email protected]>
Co-authored-by: Prekshi Vyas <[email protected]>
@wscurran wscurran added area: local-models Local model providers, downloads, launch, or connectivity area: packaging Packages, images, registries, installers, or distribution area: providers Inference provider integrations and provider behavior platform: container Affects Docker, containerd, Podman, or images area: docs Documentation, examples, guides, or docs build chore Build, CI, dependency, or tooling maintenance and removed Local Models labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation, examples, guides, or docs build area: local-models Local model providers, downloads, launch, or connectivity area: packaging Packages, images, registries, installers, or distribution area: providers Inference provider integrations and provider behavior chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants