Skip to content

Commit 2dc9f57

Browse files
authored
docs: Bump testcontainers/helloworld image in docs to version 1.2.0 (#1419)
1 parent 54f4551 commit 2dc9f57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ dotnet add package Testcontainers
77
```csharp title="Run the Hello World container"
88
// Create a new instance of a container.
99
var container = new ContainerBuilder()
10-
// Set the image for the container to "testcontainers/helloworld:1.1.0".
11-
.WithImage("testcontainers/helloworld:1.1.0")
10+
// Set the image for the container to "testcontainers/helloworld:1.2.0".
11+
.WithImage("testcontainers/helloworld:1.2.0")
1212
// Bind port 8080 of the container to a random port on the host.
1313
.WithPortBinding(8080, true)
1414
// Wait until the HTTP endpoint of the container is available.
@@ -21,7 +21,7 @@ await container.StartAsync()
2121
.ConfigureAwait(false);
2222

2323
// Create a new instance of HttpClient to send HTTP requests.
24-
var httpClient = new HttpClient();
24+
using httpClient = new HttpClient();
2525

2626
// Construct the request URI by specifying the scheme, hostname, assigned random host port, and the endpoint "uuid".
2727
var requestUri = new UriBuilder(Uri.UriSchemeHttp, container.Hostname, container.GetMappedPublicPort(8080), "uuid").Uri;

0 commit comments

Comments
 (0)