docker群体服务如何在重新启动策略中指定延迟时间?

我创build了一个docker swarm服务,如果其中一个容器在一个服务中停止,它将立即调度docker容器到一个可用的swarm节点,我想使用docker API将这个调度延迟5秒钟。 在API版本1.26文档那里是指定这样的东西

"RestartPolicy": { "Condition": "on-failure", "Delay": 10000000000, "MaxAttempts": 10 }什么是(Dealy:10000000000)。 是毫秒还是纳秒?

最新的Docker API 1没有指定,但我们可以假设它指的是纳秒,因为Healthcheck的持续时间也是纳秒:

 **Interval** - The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. **StartPeriod** - The time to wait for container initialization before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.