在Centos上执行yum update
后出现错误信息无法启动docker并显示错误消息:
error response from daemon : failed to initialize logging driver: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see.aws.config.CredentialsChainVerboseError.
答案 0 :(得分:1)
通过在路径上添加凭据变量AWS Key解决了该问题:
/usr/lib/systemd/system/docker.service
Environment="AWS_ACCESS_KEY_ID=XXX"
Environment="AWS_SECRET_ACCESS_KEY=XXX"
Environment="AWS_DEFAULT_REGION=XXX"