From ed4cd44714ee48440cf074abca95d242a989e887 Mon Sep 17 00:00:00 2001 From: Nicholas Mucks Date: Mon, 22 Jul 2024 15:48:38 -0700 Subject: [PATCH] add troubleshooting section --- .gitignore | 1 + readme.md | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index c82a22e71..59ead86e9 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ _site/ !petclinic.css zap-report/* +.DS_Store diff --git a/readme.md b/readme.md index cacc590e9..7b03f1f8a 100644 --- a/readme.md +++ b/readme.md @@ -19,6 +19,19 @@ Go to the following locations: docker-compose -f docker-compose_spring-petclinic.yml down ``` +## Troubleshooting a container + +See an event in a running container: +``` +docker logs +docker logs spring-petclinic-petclinic-1 +``` + +Run terminal in a running container: +``` +docker exec -it bash +docker exec -it spring-petclinic-petclinic-1 bash +``` # Setting up Jenkins