Fill these in once
- Show the logs
docker logs my-app - Follow new lines live
docker logs -f --tail 100 my-appPress Ctrl + C to stop following.
- Show the logs
docker logs my-app - Follow new lines live
docker logs -f --tail 100 my-appPress Ctrl + C to stop following.
- Clear a container's logsNeeds sudo
sudo truncate -s 0 $(docker inspect --format='{{.LogPath}}' my-app)
- Show the logs
docker logs my-app - Follow new lines live
docker logs -f --tail 100 my-appPress Ctrl + C to stop following.