mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-19 20:44:28 +02:00
Random connection to .ru looks sketchy
1 parent
c645ad8758
commit
e7ecc78257
1 file changed
+2
-4
+2
-4
@@ -141,16 +141,14 @@ You can use docker volumes to persist data:
|
||||
```bash
|
||||
# start our weed server daemonized
|
||||
docker run --name weed -d -p 9333:9333 -p 8080:8080 -p 18080:8080 \
|
||||
-v seaweedvolume:/data chrislusf/seaweedfs server -dir="/data" \
|
||||
-publicIp="$(curl -s cydev.ru/ip)"
|
||||
-v seaweedvolume:/data chrislusf/seaweedfs server -dir="/data"
|
||||
```
|
||||
|
||||
Alternatively, you can mount a directory on the host machine into the container:
|
||||
```bash
|
||||
# start our weed server daemonized
|
||||
docker run --name weed -d -p 9333:9333 -p 8080:8080 -p 18080:8080 \
|
||||
-v /opt/weedfs/data:/data chrislusf/seaweedfs server -dir="/data" \
|
||||
-publicIp="$(curl -s cydev.ru/ip)"
|
||||
-v /opt/weedfs/data:/data chrislusf/seaweedfs server -dir="/data"
|
||||
```
|
||||
Note that according to [Docker's documentation](https://docs.docker.com/storage/volumes/), volumes are the preferred mechanism for persisting data.
|
||||
|
||||
|
||||
Reference in new issue
Block a user