Skip to content

Commit 5aae844

Browse files
Update multi-stage-builds.md
added command to view logs of running container
1 parent aae93f6 commit 5aae844

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

content/get-started/docker-concepts/building-images/multi-stage-builds.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,14 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
233233
```console
234234
$ docker run -d -p 8080:8080 spring-helloworld
235235
```
236-
236+
237+
2. To view logs of container
238+
```console
239+
$ docker run -d -p 8080:8080 spring-helloworld
240+
```
241+
237242
You'll then see output similar to the following in the container log:
238-
243+
239244
```plaintext
240245
[INFO] --- spring-boot:3.3.4:run (default-cli) @ spring-boot-docker ---
241246
[INFO] Attaching agents: []
@@ -256,7 +261,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
256261
```
257262
258263
259-
2. Access your “Hello World” page through your web browser at [http://localhost:8080](http://localhost:8080), or via this curl command:
264+
1. Access your “Hello World” page through your web browser at [http://localhost:8080](http://localhost:8080), or via this curl command:
260265
261266
```console
262267
$ curl localhost:8080

0 commit comments

Comments
 (0)