Skip to content

Correct Docker and client setup instructions - #75

Merged
guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
GuanzhouSong:fix-117-instructions
Sep 10, 2026
Merged

Correct Docker and client setup instructions#75
guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
GuanzhouSong:fix-117-instructions

Conversation

@GuanzhouSong

Copy link
Copy Markdown
Contributor

Summary

  • Bind local Docker examples to loopback and prompt for guarded, user-chosen credentials, including the PowerShell example.
  • Pass Python/Node credentials through driver authentication options and use safe mongosh flags instead of raw credential URIs.
  • Clarify host/container port mappings and correct API-reference/offline links.
  • Complete extension-only setup with the tools package, a cluster-specific restart/connection, and both RUM extension statements.
  • Explain that removing packages preserves database data and is not a reset.

Validation

  • Targeted Markdown, Bash, Python, link, release-asset, and diff checks passed.
  • Audit reproductions confirmed the prior credential/port and missing-tool failures.
  • Published 117 still accepts the container --password flag. Native documentdb-setup uses a prompt/file/stdin; the initialization script uses its password environment variable.
  • No engine, release-tag, binary, or dependency changes.

Companion change

Website instructions are maintained separately: documentdb/documentdb.github.io#178 fixes those copies and has green CI. Merge this docs PR before the website deployment so imported content is consistent.

The published release note has already been clarified without changing its tag or assets.

AI disclosure

Prepared with GitHub Copilot assistance. Human review and approval are required.

Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@guanzhousongmicrosoft
guanzhousongmicrosoft merged commit cd85161 into documentdb:main Sep 10, 2026
guanzhousongmicrosoft added a commit that referenced this pull request Sep 10, 2026
The guide only described the manual flow: start the container yourself,
then create a New Local Connection and disable TLS. The extension has
shipped a guided setup since 0.10.0 that pulls the image, starts the
container, waits for readiness, and saves the connection, and the
documentdb.io homepage now points people at it. A reader who followed the
homepage and then landed here found instructions that contradicted it.

Lead with the wizard and give all three ways to open it (Connections
view, Command Palette, deep link). Keep the manual path as an explicit
alternative for people who run the container themselves; its commands and
notes are unchanged from #75, including the loopback binding, the
credential prompts, and the network and port notes.

Also:
- State the real Docker prerequisite, including that Docker must be
  reachable from the environment VS Code runs in (WSL, dev container, SSH
  remote, Codespaces). Drop the Git prerequisite, since nothing here
  clones a repository.
- Say what setup produces: container name, persistent volume, generated
  credentials, and the sampledb collections.
- Move creating databases and collections out of the manual path, since
  both paths need it.
- Replace the empty "Common issues and solutions" and "Using the
  extension logs" stubs with the two failures people actually hit and
  where the logs are.

Verified against microsoft/vscode-documentdb main (013e429f): wizard
labels in LocalQuickStart.tsx, the command title in package.json, the
deep-link route and its confirmation in vscodeUriHandler.ts, and the
container, volume, port, and sample database names in
services/localQuickStart/quickStartTypes.ts.

The deep link is inline code rather than a link because the site renders
these files with react-markdown, which sanitizes non-http(s) URLs.


Claude-Session: https://claude.ai/code/session_017dU6YABKoUxKLU2AB1qeH1

Co-authored-by: Guanzhou Song <guanzhousong@microsoft.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
guanzhousongmicrosoft pushed a commit to GuanzhouSong/docs that referenced this pull request Sep 10, 2026
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
guanzhousongmicrosoft pushed a commit to GuanzhouSong/docs that referenced this pull request Sep 10, 2026
The guide only described the manual flow: start the container yourself,
then create a New Local Connection and disable TLS. The extension has
shipped a guided setup since 0.10.0 that pulls the image, starts the
container, waits for readiness, and saves the connection, and the
documentdb.io homepage now points people at it. A reader who followed the
homepage and then landed here found instructions that contradicted it.

Lead with the wizard and give all three ways to open it (Connections
view, Command Palette, deep link). Keep the manual path as an explicit
alternative for people who run the container themselves; its commands and
notes are unchanged from documentdb#75, including the loopback binding, the
credential prompts, and the network and port notes.

Also:
- State the real Docker prerequisite, including that Docker must be
  reachable from the environment VS Code runs in (WSL, dev container, SSH
  remote, Codespaces). Drop the Git prerequisite, since nothing here
  clones a repository.
- Say what setup produces: container name, persistent volume, generated
  credentials, and the sampledb collections.
- Move creating databases and collections out of the manual path, since
  both paths need it.
- Replace the empty "Common issues and solutions" and "Using the
  extension logs" stubs with the two failures people actually hit and
  where the logs are.

Verified against microsoft/vscode-documentdb main (013e429f): wizard
labels in LocalQuickStart.tsx, the command title in package.json, the
deep-link route and its confirmation in vscodeUriHandler.ts, and the
container, volume, port, and sample database names in
services/localQuickStart/quickStartTypes.ts.

The deep link is inline code rather than a link because the site renders
these files with react-markdown, which sanitizes non-http(s) URLs.


Claude-Session: https://claude.ai/code/session_017dU6YABKoUxKLU2AB1qeH1
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.

2 participants