aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 830fba0..da113c1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -953,6 +953,10 @@ fn machine_configuration_script(config: &MachineConfig) -> String {
953 // tcp max orphan limit 953 // tcp max orphan limit
954 script.push_str("echo 524288 > /proc/sys/net/ipv4/tcp_max_orphans\n"); 954 script.push_str("echo 524288 > /proc/sys/net/ipv4/tcp_max_orphans\n");
955 955
956 // exit docker swarm and remove all networks
957 script.push_str("docker swarm leave || true\n");
958 script.push_str("docker network ls -q | xargs docker network rm -f || true\n");
959
956 // ip configuration 960 // ip configuration
957 script.push_str("cat << EOF | ip -b -\n"); 961 script.push_str("cat << EOF | ip -b -\n");
958 for command in config.ip_commands.iter() { 962 for command in config.ip_commands.iter() {