我的码头工人撰写文件:
version: '2'
services:
scraper:
build: ./Scraper/
logging:
driver: "awslogs"
options:
awslogs-region: "eu-west-1"
awslogs-group: "doctors-logs"
awslogs-stream: "scrapers-stream"
volumes:
- ./Scraper/spiders:/spiders
我已使用 aws configure 命令将我的 AWS 凭证添加到我的 mac,并且凭证正确存储在 ~/.aws/credentials 中
当我运行 docker-compose up 时,出现以下错误:
错误:刮板无法启动服务刮板:无法初始化日志记录驱动程序:NoCredentialProviders:链中没有有效的提供者。
已弃用。有关详细消息,请参阅 aws.Config.CredentialsChainVerboseErrors
错误:启动项目时遇到错误。
我相信这是因为我需要在 Docker 守护进程中设置 AWS 凭证,但我无法弄清楚这是如何在 macOS Sierra 上完成的。