Docker attach from fargate

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

Thank you,


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:

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


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.

It’s now possible:

1 Like