Manage docker log size

When starting to run the container:

docker run --log-driver json-file --log-opt max-size=10m --log-opt max-file=3 ...

Whilst container is running:

truncate -s 0 $(docker inspect --format='{{.LogPath}}' <container-name>)