I'm trying to use the docker awslogs driver and getting the following error:
"docker: Error response from daemon: Failed to initialize logging driver: NoCredentialProviders: no valid providers in chain. Deprecated."
According to this GitHub comment, I need to set the AWS_SHARED_CREDENTIALS_FILE
environment variable for the docker daemon, but I'm not sure how to do that when using Docker for Mac.
The command I'm using to start the container is:
docker run -d \
--log-driver=awslogs \
--log-opt awslogs-region=us-east-1 \
--log-opt awslogs-group=my-log-group \
my-image
Version information:
- Docker for Mac 1.12.1-rc1-beta23 build 11375
- OS X El Capitan 10.11.6