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