我正在尝试用ssl运行traefik - 在自签名证书上。 这是我的docker-compose.yml文件
traefik:
image: traefik
restart: unless-stopped
command: -c /dev/null --web --docker --logLevel=INFO --defaultEntryPoints='https' --entryPoints="Name:https Address::443 TLS:/certs/cert.pem,/certs/key.pem" --entryPoints="Name:http Address::80 Redirect.EntryPoint:https"
ports:
- '80:80'
- '443:443'
- '8080:8080'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./certs:/certs/
运行docker-compose up
时 - 我在日志中收到此错误:
level=error msg="Error creating TLS config: bad TLS Certificate KeyFile format, expected a path"
之后:
level=fatal msg="Error preparing server: bad TLS Certificate KeyFile format, expected a path
然后:
traefik exited with code 1
我在Mac上运行Docker版本17.06.0
关于这里可能出现什么问题的任何线索?