Gist e60925a6d9718b9806bee97ce738c0d9
✓ Published0🌍 Public
HHoffmannP
Last edited Mar 31, 2019
Created on Mar 31, 2019
This example demonstrates the network connectivity and packet loss between Docker containers on a custom macvlan network, as well as between containers and external hosts. It creates a macvlan network named "fritz", launches Alpine and Nginx containers, and adds a shim interface to test routing scenarios. The script uses the Docker CLI (`docker network create`, `docker run`, `docker exec`) and the `ip` command for network configuration, then runs `ping` tests to report percentage packet loss for various targets, cleaning up all resources afterward.
AI-generated description