Skip to content
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

Filter tasks returned by introspection API by short container ID #770

Closed
matthurne opened this issue Apr 18, 2017 · 3 comments
Closed

Filter tasks returned by introspection API by short container ID #770

matthurne opened this issue Apr 18, 2017 · 3 comments

Comments

@matthurne
Copy link

It'd be convenient to be able to provide a short container ID when using the dockerid query param with the /tasks endpoint of the agent introspection API. Currently, it seems only full container IDs are supported.

When accessing the introspection API from within a container to get information about that container, we are hitting the /tasks endpoint and finding the relevant task where the DockerId starts with the value of the container's HOSTNAME. The HOSTNAME is the short container ID. If we could provide the value of the HOSTNAME as the dockerid we wouldn't need to sift through all of the tasks running on the container instance.

@samuelkarp
Copy link
Contributor

Released in v1.14.2.

@matthurne
Copy link
Author

@samuelkarp Do you know if there's an updated Amazon ECS-Optimized AMI available that includes agent version v1.14.2 yet? Is it in amzn-ami-2016.09.g-amazon-ecs-optimized, which is the latest according to http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI_launch_latest.html?

@vsiddharth
Copy link
Contributor

@mhurne We do have an updated AMI with agent version v1.14.2 but we discovered a deadlock #833 which was addressed with #836 and we plan to publish new AMIs as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants