Introduction
Purpose
When troubleshooting reverse proxy cases in a docker set-up it can be very helpful to see what TCP information jetty is actually receiving.
Scope
Solution applies to: IVION On-Primise on Docker
Troubleshooting procedure
Create a new folder for the Dockerfile to be used to create the image. Creating a new folder ensures we aren't using context we don't want to.
Create a file called "Dockerfile" with the following content:
FROM http://docker.navvis.com/ivion-stable/ivion:latest
RUN
apt-get update && apt-get install -y tcpdump
Now build the dockerfile with the following command:
docker build . --tag iv-tcpdumpNavigate to where the docker-compose file is and change it so that the image line is as follows:
iv:image: iv-tcpdump:latestNow start iv using:
docker-compose up -dOnce IV is running, run docker ps to get the iv-tcpdump container ID. Now enter the container using:
docker exec -it <container-id> bashTo listen to the traffic entering the container run:
tcpdump -i any -s 2000 -l -A port 8080