Skip to content

docs: clarify Docker shell and Windows setup instructions - #11036

Merged
danielhanchen merged 2 commits into
unslothai:mainfrom
Imagineer99:fix/readme-docker-windows-docs
Sep 16, 2026
Merged

danielhanchen merged 2 commits into
unslothai:mainfrom
Imagineer99:fix/readme-docker-windows-docs

Conversation

@Imagineer99

Copy link
Copy Markdown
Member

The Docker quickstart uses Bash syntax without identifying the shell, and its logs command omits the required container argument. Label the example Linux / WSL (Bash), link Windows users to the Docker installation guide, and correct the command to docker logs -f <container>.

Validation: git diff --check passed. Documentation-only change; no runtime tests run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-15T17:36:09.912037Z a30dee5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

The corrected command now takes an argument the surrounding text never
supplies. docker run -d prints the id, and docker ps lists it.
@danielhanchen

Copy link
Copy Markdown
Member

Checked and correct, thank you. The three claims hold up:

  • docker logs -f genuinely requires an argument, so the old line could not be copy-pasted.
  • The Windows link resolves: https://unsloth.ai/docs/get-started/install/docker returns 200 with Install Unsloth via Docker | Unsloth Documentation, and docs.unsloth.ai/get-started/install/docker redirects to the same page, so either spelling is fine.
  • The Linux / WSL (Bash): label sits directly above the fence and renders correctly.

I pushed one small follow-on (83c71b3c8): the corrected command now takes a <container> argument that the surrounding text never supplies, so the sentence now says where to get it, the id printed by docker run -d or a name from docker ps. To be clear about why I did not add --name instead: omitting it does not leave the container nameless, Docker assigns one, so this was a wording gap rather than a defect in the command.

One thing this section still gets wrong, which is not yours to fix and is tracked in #10923: the quickstart does not mount the Hugging Face cache, so models downloaded inside the container are lost on docker rm. docker/DOCKERHUB.md already mounts it and the README drifted. I have measured it and will fix that separately so this PR stays as it is.

@danielhanchen
danielhanchen merged commit 7e8c8fa into unslothai:main Sep 16, 2026
4 checks passed
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…mand (unslothai#11036)

The README Docker quickstart used Bash syntax without saying so, pointed Windows users at Docker Desktop with WSL 2 without linking anywhere, and gave `docker logs -f` without the container argument the command requires.

- The run block is labelled `Linux / WSL (Bash):`.
- The Windows note links to the Docker installation guide.
- `docker logs -f <container>` takes its argument, and the sentence now says where that value comes from: the ID printed by `docker run -d`, or a name from `docker ps`.

Both `unsloth.ai/docs/get-started/install/docker` and `docs.unsloth.ai/get-started/install/docker` return 200 and resolve to the same page.

Note for anyone reading this section: it does not yet mount the Hugging Face cache, so models downloaded in the container are lost on `docker rm`. That is tracked in unslothai#10923 and fixed separately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants