DOCKER(1) Docker User Manuals DOCKER(1)

# [NAME](#NAME)

docker-swarm-leave - Leave the swarm

# [SYNOPSIS](#SYNOPSIS)

**docker swarm leave \[OPTIONS]**

# [DESCRIPTION](#DESCRIPTION)

Leave the swarm

# [OPTIONS](#OPTIONS)

**-f**, **--force**\[=false] Force this node to leave the swarm, ignoring warnings

# [SEE ALSO](#SEE_ALSO)

[**docker-swarm(1)**](/man/os/docker-cli/docker-swarm.1)

Sep 2026 Docker Community

---

Document: docker-swarm-leave(1) from docker-cli 29.8.2-r0 (Chainguard OS)
Source: https://github.com/docker/cli
