Skip to content

Commit

Permalink
Update multi-stage-builds.md
Browse files Browse the repository at this point in the history
added command to view logs of running container
  • Loading branch information
shariqahmkhan authored Dec 13, 2024
1 parent aae93f6 commit 5aae844
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,14 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
```console
$ docker run -d -p 8080:8080 spring-helloworld
```
2. To view logs of container
```console
$ docker run -d -p 8080:8080 spring-helloworld
```
You'll then see output similar to the following in the container log:
```plaintext
[INFO] --- spring-boot:3.3.4:run (default-cli) @ spring-boot-docker ---
[INFO] Attaching agents: []
Expand All @@ -256,7 +261,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
```
2. Access your “Hello World” page through your web browser at [http://localhost:8080](http://localhost:8080), or via this curl command:
1. Access your “Hello World” page through your web browser at [http://localhost:8080](http://localhost:8080), or via this curl command:
```console
$ curl localhost:8080
Expand Down

0 comments on commit 5aae844

Please sign in to comment.