mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
updated to point to the correct docker image
parent
2c7ccd7a87
commit
3741d04d9a
|
@ -94,15 +94,15 @@ Remember that if multiple containers for volume are created on a single host, th
|
|||
|
||||
## Using SeaweedFS in docker
|
||||
|
||||
You can use image "cydev/weed" or build your own with [dockerfile][] in the root of repo.
|
||||
You can use image "chrislusf/seaweedfs" or build your own with [dockerfile][] in the root of repo.
|
||||
|
||||
[dockerfile]: https://github.com/chrislusf/seaweedfs/blob/master/Dockerfile
|
||||
[dockerfile]: https://github.com/chrislusf/seaweedfs/blob/master/docker/Dockerfile
|
||||
|
||||
|
||||
### Using pre-built Docker image
|
||||
|
||||
```bash
|
||||
docker run --name weed cydev/weed server
|
||||
docker run --name weed chrislusf/seaweedfs server
|
||||
```
|
||||
|
||||
And in another terminal
|
||||
|
@ -128,7 +128,7 @@ git clone https://github.com/chrislusf/seaweedfs.git
|
|||
Minimal Image (~19.6 MB)
|
||||
|
||||
```bash
|
||||
docker build --no-cache -t 'cydev/weed' .
|
||||
docker build --no-cache -t 'chrislusf/seaweedfs' .
|
||||
```
|
||||
|
||||
Go-Build Docker Image (~764 MB)
|
||||
|
@ -136,7 +136,7 @@ Go-Build Docker Image (~764 MB)
|
|||
```bash
|
||||
mv Dockerfile Dockerfile.minimal
|
||||
mv Dockerfile.go_build Dockerfile
|
||||
docker build --no-cache -t 'cydev/weed' .
|
||||
docker build --no-cache -t 'chrislusf/seaweedfs' .
|
||||
```
|
||||
|
||||
### In production
|
||||
|
@ -146,7 +146,7 @@ To gain persistency you can use docker volumes.
|
|||
```bash
|
||||
# start our weed server daemonized
|
||||
docker run --name weed -d -p 9333:9333 -p 8080:8080 \
|
||||
-v /opt/weedfs/data:/data cydev/weed server -dir="/data" \
|
||||
-v /opt/weedfs/data:/data chrislusf/seaweedfs server -dir="/data" \
|
||||
-publicIp="$(curl -s cydev.ru/ip)"
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue