Windows 2016上的Traefik无法连接到Docker

时间:2018-05-17 16:26:54

标签: windows docker traefik

尝试让Traefik在Windows 2016 Server上运行。它无法连接到本地docker守护程序并提供以下错误。有什么想法吗?

traefik_1  | time="2018-05-17T11:21:25-04:00" level=error msg="Failed to retrieve information of the docker client and server host: error during connect: Get http://192.168.32.1:2376/v1.24/version: dial tcp 192.168.32.1:2376: connectex: No connection could be made because the target machine actively refused it."

我的daemon.json文件包含:{"graph": "E:\\Docker"}

以下是c:\>docker system info

的输出
Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 10
Server Version: 17.06.2-ee-10
Storage Driver: windowsfilter
 Windows:
Logging Driver: json-file
Plugins:
 Volume: local
 Network: l2bridge l2tunnel nat null overlay transparent
 Log: awslogs etwlogs fluentd json-file logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.2214.amd64fre.rs1_release_1.180402-1758)
Operating System: Windows Server 2016 Standard
OSType: windows
Architecture: x86_64
CPUs: 4
Total Memory: 2.386GiB
Name: dockerServer
ID: QOKM:O5QE:XOMZ:YNQN:JGT2:XAWN:DIUG:3K3H:M725:CADH:G6NE:Y5RK
Docker Root Dir: E:\Docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

以下是api版本请求的输出:     PS C:\ Windows \ system32> invoke-webrequest http://192.168.32.1:2376/v1.24/version

StatusCode        : 200
StatusDescription : OK
Content           : {"Platform":{"Name":""},"Components":[{"Name":"Engine","Version":"17.06.2-ee-10","Details":{"ApiVersion":"1.30","Arch":"amd64","BuildTime":"2018-04-27T00:54:58.493613431+00:00","Experimental":"false",...
RawContent        : HTTP/1.1 200 OK
                    Api-Version: 1.30
                    Docker-Experimental: false
                    Ostype: windows
                    Content-Length: 633
                    Content-Type: application/json
                    Date: Tue, 22 May 2018 11:53:35 GMT
                    Server: Docker/17.06.2-ee-10 ...
Forms             : {}
Headers           : {[Api-Version, 1.30], [Docker-Experimental, false], [Ostype, windows], [Content-Length, 633]...}
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        : System.__ComObject
RawContentLength  : 633

0 个答案:

没有答案