Преглед на файлове

Merge pull request #25719 from eskaaren/master

You can force leave swarm
Vincent Demeester преди 9 години
родител
ревизия
daf454d8cd
променени са 2 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 4 0
      docs/reference/api/docker_remote_api_v1.24.md
  2. 4 0
      docs/reference/api/docker_remote_api_v1.25.md

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

@@ -4268,6 +4268,10 @@ Leave a swarm
     Content-Length: 0
     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**:
 
 - **200** – no error

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

@@ -4298,6 +4298,10 @@ Leave a swarm
     Content-Length: 0
     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**:
 
 - **200** – no error