docker swarm 模式下,失败任务过多,可以在管理节点运行以下命令,限制历史任务数量。
docker swarm update --task-history-limit 2

Q.E.D.


简单点,说话的方式简单点。