dragonfly/docs/quick-start/README.md
Bruno Picinin Cardoso a7186c5baa
Update README.md (#631)
Signed-off-by: Bruno Picinin Cardoso <brunopicinin@gmail.com>

Signed-off-by: Bruno Picinin Cardoso <brunopicinin@gmail.com>
2023-01-02 08:02:37 +02:00

63 lines
1.5 KiB
Markdown

<p align="center">
<a href="https://dragonflydb.io">
<img src="https://raw.githubusercontent.com/dragonflydb/dragonfly/main/.github/images/logo-full.svg"
width="284" border="0" alt="Dragonfly">
</a>
</p>
# Quick Start
Starting with `docker run` is the simplest way to get up and running with DragonflyDB.
If you do not have docker on your machine, [Install Docker](https://docs.docker.com/get-docker/) before continuing.
## Step 1
### On linux
```bash
docker run --network=host --ulimit memlock=-1 docker.dragonflydb.io/dragonflydb/dragonfly
```
### On macOS
_`network=host` doesn't work well on macOS, see [this issue](https://github.com/docker/for-mac/issues/1031)_
```bash
docker run -p 6379:6379 --ulimit memlock=-1 docker.dragonflydb.io/dragonflydb/dragonfly
```
Dragonfly DB will answer to both `http` and `redis` requests out of the box!
You can use `redis-cli` to connect to `localhost:6379` or open a browser and visit `http://localhost:6379`
**NOTE**: On some configurations, running with the `docker run --privileged ...` flag can fix some
initialization errors.
## Step 2
Connect with a redis client
```bash
redis-cli
127.0.0.1:6379> set hello world
OK
127.0.0.1:6379> keys *
1) "hello"
127.0.0.1:6379> get hello
"world"
127.0.0.1:6379>
```
## Step 3
Continue being great and build your app with the power of DragonflyDB!
## Known issues
## More Build Options
- [Docker Compose Deployment](/contrib/docker/)
- [Kubernetes Deployment with Helm Chart](/contrib/charts/dragonfly/)
- [Build From Source](/docs/build-from-source.md)