Manny
Manny

Reputation: 41

Where to find TCPDump pcap file in Docker

I am trying to investigate what is causing "Session invalid. Please log in again" in OTOBO platform. I therefore tried taking tcpdump based on this provided solution but what I fail to get is where my file "dump.pcap" is stored, I have checked in the /tmp directories in linux and in the container but I cannot find it.

The tcpdump command I used is docker run --rm -v $(pwd):/dump --tty --net=container:otobo_web_1 tcpdump tcpdump -i any -w /tmp/dump.pcap Please me understand where the file is stored.

Upvotes: 0

Views: 580

Answers (1)

Manny
Manny

Reputation: 41

I have managed to get the dump but using a different comamand. With this, the file is saved in my ubuntu directory

docker run --tty --net=container:otobo_web_1 tcpdump | tee /tmp/dump.pcap

Upvotes: 0

Related Questions