solana/net/scripts/remove-docker-interface.sh

12 lines
274 B
Bash
Raw Normal View History

2018-11-07 17:42:29 -08:00
#!/bin/bash -ex
#
# Some instances have docker running and docker0 network interface confuses
# gossip and airdrops fail. As a workaround for now simply remove the docker0
# interface
#
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
ip link delete docker0