-
Notifications
You must be signed in to change notification settings - Fork 618
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
Add support for --init
#852
Comments
Hi @MrSaints. Just want to make sure we understand what you need here. You're just looking to ensure that exited processes get reaped by an init process, right? This will require some work on the ECS API in addition to the agent, and I want to make sure we properly capture use cases so we can assign an appropriate priority to that work. Thanks. |
@nmeyerhans We currently run an ECS task that contains a process that spins other processes up. When those processes exit, they may not exit nicely. And consequently, they remain as zombie processes. Before, we would simply use something like I'm happy to help with this if you can point me in the right direction. Otherwise, I'd love if this is available out-of-the-box. For now, we just installed |
With the upgrade to 17.03.1-ce this should be supported OOTB if the agent simply passes --init to docker run right? |
@stefansedich I believe so. |
@nmeyerhans was having a look into doing this as felt like something I could sink my teeth into, but I assume the API work is something that cannot be done from someone external? originally I thought it was going to be easy to add but then realized what you might have meant when you said "work on the ECS API" is something outside of the scope of the agent. |
As expressed on #865, our organisation would also like to use this Docker feature. |
is there any way to pass --init flag with ecs agent when dockers run in ec2? |
Any movement on this one? |
+1 |
Any updates yet as to how long this one might be? will help me decide if I use the init wrapper in all of our containers or just wait for the support to be added which I would prefer |
@stefansedich and others: yes, this is something that is going to be supported soon. I don't have specific details on timing, but we have started work on the backend support. |
Thanks for the update @nmeyerhans I look forward to it! |
unrelated, but why can't there just be an ECS variable that's like "just pass these flags to docker run" so we don't have to open tickets for every command line flag people want but have to wait forever to get implemented in ECS? ECS_DOCKER_RUN_FLAGS Anyway, +1 to --init. |
+1 |
1 similar comment
+1 |
You can now specify the |
Thanks @samuelkarp and team! |
Since I had to really struggle to find the relevant info on how to use it: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html Search for |
https://docs.docker.com/engine/reference/run/#specify-an-init-process
The text was updated successfully, but these errors were encountered: