print logs from docker container code example
Example 1: docker tail logs
docker logs -f --tail 100 container-name
Example 2: docker log tail
docker logs -f --tail 10 container_name
Example 3: docker container logs
docker container logs --details container-id
Example 4: get log from a docker machine
docker logs <container_id> --tail N