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