1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

GitBook: [master] 2 pages modified

This commit is contained in:
Ginger Collison 2021-03-15 14:29:20 +00:00 committed by gitbook-bot
parent 5257c83a48
commit aa207d6a14
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
2 changed files with 0 additions and 20 deletions

View File

@ -117,7 +117,6 @@
* [Example Configuration](jetstream/concepts/configuration.md)
* [Getting Started](jetstream/getting_started/README.md)
* [Using Docker](jetstream/getting_started/using_docker.md)
* [Using Docker with NGS](jetstream/getting_started/using-docker-with-ngs.md)
* [Using Source](jetstream/getting_started/using_source.md)
* [Administration & Usage from CLI](jetstream/administration/README.md)
* [Account Information](jetstream/administration/account.md)

View File

@ -1,19 +0,0 @@
# Using Docker with NGS
You can join a JetStream instance to your [NGS](https://synadia.com/ngs/pricing) account, first we need a credential for testing JetStream:
```text
$ nsc add user -a YourAccount --name leafnode --expiry 1M
```
You'll get a credential file somewhere like `~/.nkeys/creds/synadia/YourAccount/leafnode.creds`, mount this file into the docker container for JetStream using `-v ~/.nkeys/creds/synadia/YourAccount/leafnode.creds:/leafnode.creds`.
```text
$ docker run -ti -v ~/.nkeys/creds/synadia/YourAccount/leafnode.creds:/leafnode.creds --name jetstream synadia/jsm:latest server
[1] 2020/01/20 12:44:11.752465 [INF] Starting nats-server version 2.2.0-beta
...
[1] 2020/01/20 12:55:01.849033 [INF] Connected leafnode to "connect.ngs.global"
```
Your JSM shell will still connect locally, other connections in your NGS account can use JetStream at this point.