mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Update wiki to include running weed-shell commands via docker image following merge of PR #3135
parent
1b7885fe2c
commit
43b7610a8c
|
@ -112,4 +112,21 @@ total 1
|
|||
block: 515 byte:10039099653 /
|
||||
> du
|
||||
block: 515 byte:10039099653 /
|
||||
```
|
||||
```
|
||||
|
||||
# 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`
|
Loading…
Reference in a new issue