-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetCurrentContainerID() Fails on latest AWS ECS Agent 1.16.0 #263
Comments
If adding a second regex for |
Just spun up a new container and ran into this issue. Is there a known workaround or know when we'll have a fix? |
tradziej
added a commit
to tradziej/docker-gen
that referenced
this issue
Dec 29, 2017
This was referenced Jan 18, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The recent update to aws ecs agent 1.16.0 changed the default prefix for the control groups inside a docker container so that the regex inside GetCurrentContainerID() (https://github.com/jwilder/docker-gen/blob/master/context.go#L161) no longer works. I submitted an issue and PR to aws here aws/amazon-ecs-agent#1119 but they have given reasons for why they won't accept it.
They also linked out to some other issues for docker introspection which is still an open issue for a standard way to get this information. The latest ecs agent also has some ability to get container meta data.
All of this leads me with knowing the problem but not a great idea for a solution.
We could easily just add a secondary check to the regex to work for both standard docker or ecs but I'm not a big fan of making a platform specific change.
I wanted to reach out and at least get some other people thinking about the issue and see if there are any other ideas.
The text was updated successfully, but these errors were encountered: