You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daprdocs/content/en/reference/cli/dapr-init.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@ dapr init [flags]
46
46
|`--container-runtime`||`docker`| Used to pass in a different container runtime other than Docker. Supported container runtimes are: `docker`, `podman`|
47
47
|`--dev`||| Creates Redis and Zipkin deployments when run in Kubernetes. |
48
48
|`--scheduler-volume`||| Self-hosted only. Optionally, you can specify a volume for the scheduler service data directory. By default, without this flag, scheduler data is not persisted and not resilient to restarts. |
49
+
|`--scheduler-override-broadcast-host-port`|| localhost:50006 (6060 for Windows) | Self-hosted only. Specify the scheduler broadcast host and port, for example: 192.168.42.42:50006. |
49
50
50
51
51
52
### Examples
@@ -70,7 +71,7 @@ Dapr can also run [Slim self-hosted mode]({{< ref self-hosted-no-docker.md >}}),
70
71
dapr init -s
71
72
```
72
73
73
-
> To switch to Dapr Github container registry as the default registry, set the `DAPR_DEFAULT_IMAGE_REGISTRY` environment variable value to be `GHCR`. To switch back to Docker Hub as default registry, unset this environment variable.
74
+
> To switch to Dapr Github container registry as the default registry, set the `DAPR_DEFAULT_IMAGE_REGISTRY` environment variable value to be `GHCR`. To switch back to Docker Hub as default registry, unset this environment variable.
74
75
75
76
**Specify a runtime version**
76
77
@@ -148,7 +149,7 @@ dapr init --network mynet
148
149
Verify all containers are running in the specified network.
149
150
150
151
```bash
151
-
docker ps
152
+
docker ps
152
153
```
153
154
154
155
Uninstall Dapr from that Docker network.
@@ -157,6 +158,18 @@ Uninstall Dapr from that Docker network.
157
158
dapr uninstall --all --network mynet
158
159
```
159
160
161
+
**Specify scheduler broadcast host and port**
162
+
163
+
You can specify the scheduler broadcast host and port, for example: 192.168.42.42:50006.
164
+
165
+
This is necessary when you have to connect to the scheduler using a different host and port, as the scheduler only allows connections matching this host and port.
166
+
167
+
By default, the scheduler will use localhost:50006 (6060 for Windows).
You can also specify a private registry to pull container images from. As of now `dapr init -k` does not use specific images for sentry, operator, placement, scheduler, and sidecar. It relies on only Dapr runtime container image `dapr` for all these images.
194
207
195
-
Scenario 1 : dapr image hosted directly under root folder in private registry -
208
+
Scenario 1 : dapr image hosted directly under root folder in private registry -
196
209
```bash
197
210
dapr init -k --image-registry docker.io/username
198
211
```
199
-
Scenario 2 : dapr image hosted under a new/different directory in private registry -
212
+
Scenario 2 : dapr image hosted under a new/different directory in private registry -
0 commit comments