Skip to content

Commit febcda7

Browse files
authored
docs(quickstart): Clarify docker command for macOS (#612)
Clarify docker command for macOS I had issues when running the command on my m2 macbook air. [It turns out][1] that apparently docker desktop on macOS doesn't really support the host option. Additionally, it looks like I had to explicitly pass the port mapping options for the ports to be actually mapped. There might be a better and more efficient solution, but this is what I came up with and it finally worked. [1]:docker/for-mac#1031
1 parent 92454c6 commit febcda7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/quick-start/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,20 @@ If you do not have docker on your machine, [Install Docker](https://docs.docker.
1414

1515
## Step 1
1616

17+
### On linux
18+
1719
```bash
1820
docker run --network=host --ulimit memlock=-1 docker.dragonflydb.io/dragonflydb/dragonfly
1921
```
2022

23+
### On macOS
24+
25+
_`network=host` doesn't work well on macOS, see [this issue](https://github.com/docker/for-mac/issues/1031)_
26+
27+
```bash
28+
docker run --p 6379:6379 --ulimit memlock=-1 docker.dragonflydb.io/dragonflydb/dragonfly
29+
```
30+
2131
Dragonfly DB will answer to both `http` and `redis` requests out of the box!
2232

2333
You can use `redis-cli` to connect to `localhost:6379` or open a browser and visit `http://localhost:6379`

0 commit comments

Comments
 (0)