Skip to content

leonseng/dockerdump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

dockerdump

dockerdump makes it easy to capture packets on the interface of a Docker container using tcpdump.

Usage

To use this script, simply run the following command:

dockerdump <container> [tcpdump-options]

Examples:

# by container name
sudo dockerdump my_container -s 0 host 10.0.0.1

# by container id
sudo dockerdump 392faad5b085 -nnv -s 0 port 443 -w my_packets.pcap

Installation

To install this script, follow these steps:

  1. Download the script using curl:
    curl -o- https://raw.githubusercontent.com/leonseng/dockerdump/main/dockerdump | sudo tee /usr/local/bin/dockerdump >/dev/null
    
  2. Make the script executable:
    sudo chmod +x /usr/local/bin/dockerdump
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages