docker swarm update --task-history-limit 10

Category: Docker

docker swarm update --task-history-limit 10

Keep 10 tasks of history per service

Controls how many past task records swarm retains per service, default 5. Raising it helps audit rollbacks and failures; lowering it shrinks the Raft store. Apply on a manager node.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.