docker restart policy不起作用?

时间:2016-05-23 13:36:50

标签: docker

docker 1.10.2,ansible 2.0 我将所有容器设置为restart_policy:always。

当我做一个简单的

service docker restart

并且并非所有容器都已启动(每次不同容器组都启动) - 假设这是应用级别(我有依赖关系 - 例如zookeeper) - 不应该"失败"一直在努力?这不是什么意思吗?

对码头进行了检查:

 "State": {
            "Status": "exited",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 143,
            "Error": "initlogger: Failed to initialize logging driver: dial tcp 127.0.0.1:24224: getsockopt: connection refused",
            "StartedAt": "2016-05-23T13:22:55.849986549Z",
            "FinishedAt": "2016-05-23T13:39:58.087484408Z"
        },
        "Image"

0 个答案:

没有答案