docker logs application code example
Example 1: docker logs follow
docker logs --follow [container name]
Example 2: get log from a docker machine
docker logs <container_id> --tail N
docker logs --follow [container name]
docker logs <container_id> --tail N