Docker无法在Centos VM上运行

时间:2018-02-13 08:47:22

标签: docker centos

在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.

1 个答案:

答案 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"