Selaa lähdekoodia

Merge pull request #25719 from eskaaren/master

You can force leave swarm
(cherry picked from commit daf454d8cd6146ef2cb644614301806ef59c58cc)

Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Vincent Demeester 9 vuotta sitten
vanhempi
commit
c6e7fececb

+ 4 - 0
docs/reference/api/docker_remote_api_v1.24.md

@@ -4272,6 +4272,10 @@ Leave a swarm
     Content-Length: 0
     Content-Length: 0
     Content-Type: text/plain; charset=utf-8
     Content-Type: text/plain; charset=utf-8
 
 
+**Query parameters**:
+
+- **force** - Boolean (0/1, false/true). Force leave swarm, even if this is the last manager or that it will break the cluster.
+
 **Status codes**:
 **Status codes**:
 
 
 - **200** – no error
 - **200** – no error

+ 4 - 0
docs/reference/api/docker_remote_api_v1.25.md

@@ -4293,6 +4293,10 @@ Leave a swarm
     Content-Length: 0
     Content-Length: 0
     Content-Type: text/plain; charset=utf-8
     Content-Type: text/plain; charset=utf-8
 
 
+**Query parameters**:
+
+- **force** - Boolean (0/1, false/true). Force leave swarm, even if this is the last manager or that it will break the cluster.
+
 **Status codes**:
 **Status codes**:
 
 
 - **200** – no error
 - **200** – no error