Troubleshooting Reverse Proxy Settings for Docker

Prev Next

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

  1. 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.

  2. 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

  3. Now build the dockerfile with the following command: 

    docker build . --tag iv-tcpdump

  4. Navigate to where the docker-compose file is and change it so that the image line is as follows:

    iv:
    image: iv-tcpdump:latest

  5. Now start iv using: 

    docker-compose up -d

  6. Once IV is running, run docker ps to get the iv-tcpdump container ID. Now enter the container using:

    docker exec -it <container-id> bash

  7. To listen to the traffic entering the container run: 

    tcpdump -i any -s 2000 -l -A port 8080