Docker attach from fargate

Does anyone know of any way to get a shell prompt on a container running in fargate?

Thank you,

Michael

Hi Michael,

unfortunately, that’s not supported by ECS&Fargate. I found a thread with some possible workarounds but I can not recommend any of those: https://github.com/aws/containers-roadmap/issues/187

What’s your motivation to docker exec into a container? Maybe, we can find an alternative solution.

Thanks
Michael

Sometimes, especially during development, I really would like to see data being sent to a container and make tweaks to the code real-time rather having to restart the container over and over. Also for troubleshooting reasons.

I see. That’s not possible with Fargate. But you can do so on your local machine. We use docker-compose in the book to start the environment. You can docker exec there if you wish.