view docker container logs code example
Example 1: docker container logs
docker container logs --details container-id
Example 2: get log from a docker machine
docker logs <container_id> --tail N
docker container logs --details container-id
docker logs <container_id> --tail N