{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-mac/issues/611","repository_url":"https://api.github.com/repos/docker/for-mac","labels_url":"https://api.github.com/repos/docker/for-mac/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-mac/issues/611/comments","events_url":"https://api.github.com/repos/docker/for-mac/issues/611/events","html_url":"https://github.com/docker/for-mac/issues/611","id":176783521,"number":611,"title":"Add ability to set environment variables for docker daemon","user":{"login":"ottumm","id":776127,"avatar_url":"https://avatars3.githubusercontent.com/u/776127?v=4","gravatar_id":"","url":"https://api.github.com/users/ottumm","html_url":"https://github.com/ottumm","followers_url":"https://api.github.com/users/ottumm/followers","following_url":"https://api.github.com/users/ottumm/following{/other_user}","gists_url":"https://api.github.com/users/ottumm/gists{/gist_id}","starred_url":"https://api.github.com/users/ottumm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottumm/subscriptions","organizations_url":"https://api.github.com/users/ottumm/orgs","repos_url":"https://api.github.com/users/ottumm/repos","events_url":"https://api.github.com/users/ottumm/events{/privacy}","received_events_url":"https://api.github.com/users/ottumm/received_events","type":"User","site_admin":false},"labels":[{"id":415727409,"url":"https://api.github.com/repos/docker/for-mac/labels/area/docker","name":"area/docker","color":"fbca04","default":false},{"id":415727148,"url":"https://api.github.com/repos/docker/for-mac/labels/area/gui","name":"area/gui","color":"fbca04","default":false},{"id":415725911,"url":"https://api.github.com/repos/docker/for-mac/labels/kind/feature","name":"kind/feature","color":"aab3ab","default":false},{"id":438330965,"url":"https://api.github.com/repos/docker/for-mac/labels/status/1-acknowledged","name":"status/1-acknowledged","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-14T00:17:02Z","updated_at":"2018-05-24T02:54:59Z","closed_at":null,"author_association":"NONE","body":"I'd like to be able to use the awslogs driver with Docker for Mac, but I can't find any way to set the necessary `AWS_SHARED_CREDENTIALS_FILE` environment variable in the docker daemon. I asked in https://github.com/docker/docker/issues/25468#issuecomment-241576278 and was referred here.\n\nFor reference, I also filed a StackOverflow question on this: http://stackoverflow.com/questions/39047067/how-do-i-provide-credentials-to-the-docker-awslogs-driver-using-docker-for-mac\n"},"comment":{"url":"https://api.github.com/repos/docker/for-mac/issues/comments/391571565","html_url":"https://github.com/docker/for-mac/issues/611#issuecomment-391571565","issue_url":"https://api.github.com/repos/docker/for-mac/issues/611","id":391571565,"user":{"login":"YRM64","id":32690260,"avatar_url":"https://avatars1.githubusercontent.com/u/32690260?v=4","gravatar_id":"","url":"https://api.github.com/users/YRM64","html_url":"https://github.com/YRM64","followers_url":"https://api.github.com/users/YRM64/followers","following_url":"https://api.github.com/users/YRM64/following{/other_user}","gists_url":"https://api.github.com/users/YRM64/gists{/gist_id}","starred_url":"https://api.github.com/users/YRM64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YRM64/subscriptions","organizations_url":"https://api.github.com/users/YRM64/orgs","repos_url":"https://api.github.com/users/YRM64/repos","events_url":"https://api.github.com/users/YRM64/events{/privacy}","received_events_url":"https://api.github.com/users/YRM64/received_events","type":"User","site_admin":false},"created_at":"2018-05-24T02:54:59Z","updated_at":"2018-05-24T02:54:59Z","author_association":"NONE","body":"Ottumm,\r\n\r\nThere are only a couple of supported values in the shared credential file: https://docs.aws.amazon.com/cli/latest/topic/config-bars.html#the-shared-credentials-file\r\n\r\nVisit, https://docs.aws.amazon.com/AmazonECS/latest/.developerguide/using_awslogs.html#enable_awslogs \r\n\r\nWhat You Can Do:\r\n\r\n1. Enable the awslogs Log Driver for your containers.\r\n2. Create your log groups.\r\n3. Set available awslogs Log Driver Options.\r\n4. Specify a Log Configuration in your Task Definition.\r\n5. View awslogs Container Logs in CloudWatch Logs.\r\n\r\nYou need to be specific in highlighting the fact that the awslogs logging driver is available on your container instance when you commence the Amazon ECS Container Agent if you're not using the Amazon ECS-optimized AMI (at least version 1.9.0-1 of the ecs-init package) for your container instance(s).\r\n\r\nThere's a wealth of valuable information for you on this topic, including how to install the Amazon ECS Container Agent, creating your Log Groups, creating a Log Group with the AWS CLI, using the AWS Command-Line Interface User Guide, creating a Log Group in the Amazon ECS Console, using the AWS Log Driver, and much much more, all available at docs.aws.amazon.com.\r\n"}}
{"actor":{"display_login":"YRM64"}}