From 43b7610a8c2bd5b026aa959a86ca1f0b9b0c7d8f Mon Sep 17 00:00:00 2001 From: Kaiwalya R Joshi Date: Wed, 1 Jun 2022 16:15:53 -0700 Subject: [PATCH] Update wiki to include running weed-shell commands via docker image following merge of PR #3135 --- weed-shell.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/weed-shell.md b/weed-shell.md index 389adf0..0602164 100644 --- a/weed-shell.md +++ b/weed-shell.md @@ -112,4 +112,21 @@ total 1 block: 515 byte:10039099653 / > du block: 515 byte:10039099653 / -``` \ No newline at end of file +``` + +# Run from Docker Image +`weed shell` commands can also be run via the docker image, allowing an operator to perform maintenance commands. + +``` +docker run \ + --rm \ + -e SHELL_FILER=localhost:8888 \ + -e SHELL_MASTER=localhost:9333 \ + chrislusf/seaweedfs:local \ + "shell" \ + "fs.configure -locationPrefix=/buckets/foo -volumeGrowthCount=3 -replication=002 -apply" +``` + +Here `shell` selects the [Docker image entrypoint](https://github.com/chrislusf/seaweedfs/blob/master/docker/entrypoint.sh#L60-L64). + +The arguments are `fs.configure -locationPrefix=/buckets/foo -volumeGrowthCount=3 -replication=002 -apply` \ No newline at end of file