Skip to content

Commit 77a9d85

Browse files
authored
Merge pull request #3978 from hhunter-ms/issue_3944
Add workaround for `dapr init` with MacOS Silicon and Docker
2 parents bd9cc5b + c2a5198 commit 77a9d85

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

daprdocs/content/en/getting-started/install-dapr-selfhost.md

+25-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Dapr initialization includes:
2323
1. Running a **Dapr placement service container instance** for local actor support.
2424

2525
{{% alert title="Docker" color="primary" %}}
26-
The recommended development environment requires [Docker](https://docs.docker.com/install/). While you can [initialize Dapr without a dependency on Docker]({{<ref self-hosted-no-docker.md>}})), the next steps in this guide assume the recommended Docker development environment.
26+
The recommended development environment requires [Docker](https://docs.docker.com/install/). While you can [initialize Dapr without a dependency on Docker]({{< ref self-hosted-no-docker.md >}})), the next steps in this guide assume the recommended Docker development environment.
2727

28-
You can also install [Podman](https://podman.io/) in place of Docker. Read more about [initializing Dapr using Podman]({{<ref dapr-init.md>}}).
28+
You can also install [Podman](https://podman.io/) in place of Docker. Read more about [initializing Dapr using Podman]({{< ref dapr-init.md >}}).
2929
{{% /alert %}}
3030

3131
### Step 1: Open an elevated terminal
@@ -54,12 +54,35 @@ Run Windows Terminal or command prompt as administrator.
5454

5555
### Step 2: Run the init CLI command
5656

57+
{{< tabs "Linux/MacOS" "Windows">}}
58+
59+
{{% codetab %}}
60+
61+
Install the latest Dapr runtime binaries:
62+
63+
```bash
64+
dapr init
65+
```
66+
67+
**If you are installing on Mac OS Silicon with Docker,** you may need to perform the following workaround to enable `dapr init` to talk to Docker without using Kubernetes.
68+
1. Navigate to **Docker Desktop** > **Settings** > **Advanced**.
69+
1. Select the **Enable default Docker socket** checkbox.
70+
71+
{{% /codetab %}}
72+
73+
{{% codetab %}}
74+
5775
Install the latest Dapr runtime binaries:
5876

5977
```bash
6078
dapr init
6179
```
6280

81+
{{% /codetab %}}
82+
83+
{{< /tabs >}}
84+
85+
6386
### Step 3: Verify Dapr version
6487

6588
```bash

0 commit comments

Comments
 (0)