Getting console output from a Docker container
docker logs <container id>
will show you all the output of the container run. If you're running it on ECS, you'll probably need to set DOCKER_HOST=tcp://ip:port
for the host that ran the container.
To view the logs of a Docker container in real time, use the following command:
docker logs -f <CONTAINER>
The -f
or --follow
option will show live log output. Also if the container is stopped it will fetch its logs.