TIP: work with Amazon AWS ECS Container Service Docker containers

When running Amazon EC2 Container Service (ECS), have these two commands running in Tmux on your instances:

tail -f $(ls -1t /var/log/ecs/ecs-agent.log.* | head -1)

sudo tail -f /var/log/upstart/docker.log

In another Tmux tab, this command lets you look at the logs from your running Docker container:

docker logs -f $(docker ps –filter name=myname,status=running –quiet)