Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
added docker run desc
Signed-off-by: anjia0532 <anjia0532@gmail.com>
  • Loading branch information
anjia0532 committed Mar 29, 2019
1 parent 578ac41 commit 6ed5d4d
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions docs/quick_start/README.md
Expand Up @@ -6,6 +6,8 @@ In this quick start guide, you will get a feeling of Dragonfly by starting a sup

You have started your Docker container.

**Note:** `[command]` is optional

## Step 1: Starting a SuperNode (the Server) in Your Docker Container

1. Pull the docker image we provided.
Expand All @@ -24,17 +26,20 @@ You have started your Docker container.

```bash
# Replace ${imageName} with the real image name
docker run -d -p 8001:8001 -p 8002:8002 ${imageName}
docker run -d -p 8001:8001 -p 8002:8002 [-v /path/to/supernode:/home/admin/supernode] ${imageName} [-Dsupernode.advertiseIp=private/public supernode ip]
```

For example, if you're in China, run the following commands:

```bash
docker pull registry.cn-hangzhou.aliyuncs.com/dragonflyoss/supernode:0.3.0

docker run -d -p 8001:8001 -p 8002:8002 registry.cn-hangzhou.aliyuncs.com/dragonflyoss/supernode:0.3.0
docker run -d -p 8001:8001 -p 8002:8002 [-v /path/to/supernode:/home/admin/supernode] registry.cn-hangzhou.aliyuncs.com/dragonflyoss/supernode:0.3.0 [-Dsupernode.advertiseIp=private/public supernode ip]
```

**Note:** docker use private ip(docker0 bridge),client cannot access supernode when it run another machine.


## Step 2: Installing Dragonfly Client

You have two options of installing Dragonfly client: installing from source code, or installing by pulling the image.
Expand Down Expand Up @@ -98,8 +103,15 @@ export PATH=$PATH:$HOME/df-client/
2. Start dfdaemon.

```bash
docker run -d -p 65001:65001 dragonflyoss/dfclient:v0.3.0 --registry https://xxx.xx.x
cat <<EOD >/etc/dragonfly.conf
[node]
address=private/public supernode ip
EOD
docker run -d -p 65001:65001 [-v /path/to/.small-dragonfly:/root/.small-dragonfly -v /etc/dragonfly.conf:/etc/dragonfly.conf] dragonflyoss/dfclient:v0.3.0 --registry https://xxx.xx.x
```
**Note:**
- /etc/dragonfly.conf must be set supernode addr
- registry can be private registry like harbor service or mirror url like aliyun mirror,the default value is registry.index.io(In chinese u'll lose connection)

3. Configure the Daemon Mirror.

Expand Down

0 comments on commit 6ed5d4d

Please sign in to comment.