aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-11-09 18:42:41 +0000
committerdiogo464 <[email protected]>2025-11-09 18:42:41 +0000
commite98d7f5bcdcb60e575e6df35a961ede5024bc09e (patch)
treef768f130445e0056b87869ad62a591569246b5bb /src/main.rs
parent95b5ea90459662dc740236c0743438c7af0229e5 (diff)
fix: added --force flag to docker swarm leave
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 537780a..4c49fad 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -961,7 +961,7 @@ fn machine_configuration_script(config: &MachineConfig) -> String {
961 script.push_str("echo 524288 > /proc/sys/net/ipv4/tcp_max_orphans\n"); 961 script.push_str("echo 524288 > /proc/sys/net/ipv4/tcp_max_orphans\n");
962 962
963 // exit docker swarm and remove all networks 963 // exit docker swarm and remove all networks
964 script.push_str("docker swarm leave || true\n"); 964 script.push_str("docker swarm leave --force || true\n");
965 script.push_str("docker network ls -q | xargs docker network rm -f || true\n"); 965 script.push_str("docker network ls -q | xargs docker network rm -f || true\n");
966 966
967 // ip configuration 967 // ip configuration