Skip to content

nats: fix cluster examples for the scratch-based default image - #2711

Merged
tianon merged 1 commit into
docker-library:masterfrom
koksharoff:master
Oct 12, 2026
Merged

tianon merged 1 commit into
docker-library:masterfrom
koksharoff:master

Conversation

@koksharoff

Copy link
Copy Markdown
Contributor

Follow-up to #2710 / #2491: the variant descriptions are now fixed, but the cluster examples still pass -c /etc/nats/nats-server.conf, which only exists in the -alpine variant. On the default (scratch) image the second server exits with open /etc/nats/nats-server.conf: no such file or directory.

Changes (only nats/content.md):

  • use /nats-server.conf in the cluster examples and log output
  • replace the deprecated --link with a user-defined network
  • stop re-publishing host ports already bound by nats-main

Tested the updated commands verbatim against the 2.15 image: the second server joins the cluster (routes visible in /routez). markdownfmt reports no changes.

cc @bruth

@tianon

tianon commented Oct 8, 2026

Copy link
Copy Markdown
Member

cc nats image maintainers: @derekcollison @wallyqs @bruth @neilalexander @philpennock

(fwiw, we usually skip docker network create in docs for images we maintain and just use a --network some-network placeholder, but this seems fine to me either way)

@wallyqs

wallyqs commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

LGTM

@tianon
tianon merged commit 1f9ca1a into docker-library:master Oct 12, 2026
6 checks passed
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.

3 participants