运行命令fleetctl load registry@1.service registry-presence@1.service
我得到以下输出:
2015/05/08 10:25:26 WARN fleetctl.go:772: Error retrieving Unit(registry@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry%401.service?alt=json: forwarding request denied
2015/05/08 10:30:31 WARN fleetctl.go:772: Error retrieving Unit(registry-presence@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry-presence%401.service?alt=json: forwarding request denied
2015/05/08 10:36:14 WARN fleetctl.go:772: Error retrieving Unit(registry@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/05/08 10:42:44 WARN fleetctl.go:772: Error retrieving Unit(registry-presence@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry-presence%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/05/08 10:54:46 WARN fleetctl.go:772: Error retrieving Unit(registry@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/05/08 10:57:51 WARN fleetctl.go:772: Error retrieving Unit(registry-presence@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry-presence%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/05/08 10:58:12 WARN fleetctl.go:772: Error retrieving Unit(registry@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/05/08 11:02:43 WARN fleetctl.go:772: Error retrieving Unit(registry-presence@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry-presence%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
这只是重复,我已经让命令运行了 30 多分钟。当我按 CTRL-C 并运行时,fleetctl list-unit-files
我看到以下内容:
UNIT HASH DSTATE STATE TARGET
registry-presence@1.service f54aa0d loaded inactive 0d8d13be.../172.17.8.101
registry@1.service d233714 loaded inactive 0d8d13be.../172.17.8.101
的输出fleetctl list-units
是:
UNIT MACHINE ACTIVE SUB
如果我运行加载命令,-block-attempts=2
它会给出相同的错误但完成并且输出fleetctl list-unit-files
是:
UNIT HASH DSTATE STATE TARGET
registry-presence@1.service f54aa0d loaded loaded 0d8d13be.../172.17.8.101
registry@1.service d233714 loaded loaded 0d8d13be.../172.17.8.101
的输出fleetctl list-units
是:
UNIT MACHINE ACTIVE SUB
registry-presence@1.service 0d8d13be.../172.17.8.101 inactive dead
registry@1.service 0d8d13be.../172.17.8.101 inactive dead
我想知道 WARN 日志试图告诉我什么,它在说什么注册表?