-
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 option to open TTY #462
Comments
@k2nr Currently ECS doesn't support opening TTY for containers using task definition. But you can still launch your task in ECS, then ssh into your instance and use docker exec to attach to the container. |
@aaithal @richardpen do you know the roadmap for interactive tasks? Had a thought that if there was an API call for createTask which would just call docker create, attaching and running via ssh would be way less hacky then what we have now, where you create a task with a process that never dies and then hope that you later remember to stop the container. OR if there was a way of calling docker run commands as root directly on the container instance that we could be assured behaved the same as calling runTask from the API. I also use task IAM roles to fetch s3 config, and have task definition config that I want to be assured is the same between my interactive containers and app server containers. Maybe e.g. Of course the ideal scenario is just something like |
+1 |
I have a working proof of concept for running |
are there any plans to support this? i want to gpg sign commits in the container and my builds fail with this error:
|
@richardpen Another issue with doing it via |
is there any potential forward motion on this? i'd still like to use the service but want the |
You have the following labels per docker container running in your EC2 Container Instance:
You just need to ssh to one of the instances where the task currently lives and do and replace the name of the container(in my case is
That opens a terminal inside the container, it works with a ruby on rails image as well:
|
@bithavoc in real world we shouldn't have access to instance SSH, just the container :) |
@panga true, what I posted is a walk-around I guess |
i just took another look on the aws side of things and it doesn't appear this is an option in the task definition either, so i'm wondering if this is possible w/o that. |
is not possible to |
Just adding my +1 for ECS supporting something like this. We have a feature in Empire for running attached processes (just like |
I would really like a way to run an ECS container with a TTY |
Gave up on this, switched to Rancher and never looked back |
+1 |
2 similar comments
+1 |
+1 |
+1 |
1 similar comment
+1 |
You can now add tty and interactive options to your containers in your task definition. You can add these new options in the AWS Console now, and they'll be available in the AWS CLI and SDKs soon. |
only took 2 plus years, but hey, better late then never!!!! |
Congrats team! |
@sharanyad so how one could attach from CLI to interactive tasks then? |
This reverts commit 39c2e57.
* Include amazon-ecs-volume-plugin and startup scripts in Debian Package (aws#450) * add amazon-ecs-volume-plugin to rpm generic package (aws#462) * Fix the issue that potentially curl target not present in bucket during release * Update copyrights Co-authored-by: Dennis Conrad <[email protected]>
Right now there is no way to open TTY of a container that is launched by ECS agent. I need this option to run an interactive container inside our ECS cluster.
Specifically, I want to run
rails console
in our production cluster. Currently we do this by ssh'ing into the container instance and rundocker run -it ...
directly but this approach has several problems:docker run -it
inside the container instanceSo what we want to do with this tty option is: run ECS task with TTY, ssh into the container instance then
docker attach
to the containerThe text was updated successfully, but these errors were encountered: