see docker logs 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: docker active log
docker logs -f container-id
docker logs --follow [container name]
docker container logs --details container-id
docker logs -f container-id