-
Pre-req:
docker daemon -D
running with no networks that will overlap with tests. Pretty much 192.168.0.0/16 and the PR #964 compiled with experimental Docker or download this docker experimental binary including the drivers: docker-1.11.0-dev.zip. -
Pull script and give it executable permissions:
curl -o vlan-tests.sh \
https://raw.githubusercontent.com/nerdalert/dotfiles/master/ipvlan-macvlan-it.sh && \
chmod +x vlan-tests.sh
- View the test output here
-
With the
docker daemon -D
running, start the script you just downloaded./vlan-tests.sh
. If you don't have an ethernet device on your docker host namedeth0
, edit the 11th line in the script fromETH=${ETH:-eth0}
toETH=${ETH:-NAME_OF_YOUR_ETHERNET_DEV_GOES_HERE}
-
The test will create
54
networks and123
containers, then delete them all, and then repeat the test again by creating all of the networks.
- The reason for running the test twice is to ensure things were released the first time such as IPAM pools and address assignments. The test will also create manual
ip link
links so as to test the scenario of passing in existing links and not deleting them when the docker network is deleted as described in the PR notes: Manually Creating 802.1q Links