Skip to content

Commit

Permalink
Add \ for line breaks on the multiline docker command (#2722)
Browse files Browse the repository at this point in the history
  • Loading branch information
greendesertsnow authored Feb 21, 2024
1 parent 92360ab commit 473cabd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions learn/cookbooks/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ If you want to pass command-line arguments to Meilisearch with Docker, you must
docker run -it --rm \
-p 7700:7700 \
-v $(pwd)/meili_data:/meili_data \
getmeili/meilisearch:v1.6
getmeili/meilisearch:v1.6 \
meilisearch --master-key="MASTER_KEY"
```

Expand Down Expand Up @@ -91,7 +91,7 @@ To import a dump, use Meilisearch's `--import-dump` command-line option and spec
docker run -it --rm \
-p 7700:7700 \
-v $(pwd)/meili_data:/meili_data \
getmeili/meilisearch:v1.6
getmeili/meilisearch:v1.6 \
meilisearch --import-dump /meili_data/dumps/20200813-042312213.dump
```

Expand All @@ -111,7 +111,7 @@ To generate a Meilisearch snapshot with Docker, launch Meilisearch with `--sched
docker run -it --rm \
-p 7700:7700 \
-v $(pwd)/meili_data:/meili_data \
getmeili/meilisearch:v1.6
getmeili/meilisearch:v1.6 \
meilisearch --schedule-snapshot --snapshot-dir /meili_data/snapshots
```

Expand All @@ -123,7 +123,7 @@ To import a snapshot, launch Meilisearch with the `--import-snapshot` option:
docker run -it --rm \
-p 7700:7700 \
-v $(pwd)/meili_data:/meili_data \
getmeili/meilisearch:v1.6
getmeili/meilisearch:v1.6 \
meilisearch --import-snapshot /meili_data/snapshots/data.ms.snapshot
```

Expand Down

0 comments on commit 473cabd

Please sign in to comment.