Skip to content

Commit

Permalink
Clarify docker command for macOS
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pjambet committed Dec 27, 2022
1 parent 2386b02 commit 9ecb8bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/quick-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ 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.
**NOTES**:

- On some configurations, running with the `docker run --privileged ...` flag can fix some
initialization errors.
- The `network=host` option doesn't work well on macOS. You can remove it and replace it with `-p 6379:6379` for
ports to be successfully mapped between the host and the container.

## Step 2

Expand Down

0 comments on commit 9ecb8bd

Please sign in to comment.