Skip to content

Commit 86a4fbe

Browse files
authored
Update README for Docker and Kubernetes usage examples to clarify environment setup (#9192)
1 parent 80565e9 commit 86a4fbe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Aspire.Hosting.Docker/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ dotnet add package Aspire.Hosting.Docker
1414

1515
## Usage example
1616

17-
Then, in the _AppHost.cs_ file of `AppHost`, register the publisher:
17+
Then, in the _AppHost.cs_ file of `AppHost`, add the environment:
1818

1919
```csharp
20-
builder.AddPublisher<DockerComposePublisher>("docker-compose");
20+
builder.AddDockerComposeEnvironment("compose");
2121
```
2222

2323
```shell
24-
aspire publish -t docker-compose -o artifacts
24+
aspire publish -o docker-compose-artifacts
2525
```
2626

2727
## Feedback & contributing

src/Aspire.Hosting.Kubernetes/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ dotnet add package Aspire.Hosting.Kubernetes
1414

1515
## Usage example
1616

17-
Then, in the _AppHost.cs_ file of `AppHost`, register the publisher:
17+
Then, in the _AppHost.cs_ file of `AppHost`, add the environment:
1818

1919
```csharp
20-
builder.AddPublisher<KubernetesPublisher>("k8s");
20+
builder.AddKubernetesEnvironment("k8s");
2121
```
2222

2323
```shell
24-
aspire publish -t k8s -o artifacts
24+
aspire publish -o k8s-artifacts
2525
```
2626

2727
## Feedback & contributing

0 commit comments

Comments
 (0)