add troubleshooting section

This commit is contained in:
Nicholas Mucks 2024-07-22 15:48:38 -07:00
parent a7c0b5e895
commit ed4cd44714
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View file

@ -17,3 +17,4 @@ _site/
!petclinic.css
zap-report/*
.DS_Store

View file

@ -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 <container-id>
docker logs spring-petclinic-petclinic-1
```
Run terminal in a running container:
```
docker exec -it <container-id> bash
docker exec -it spring-petclinic-petclinic-1 bash
```
# Setting up Jenkins