Container log truncation

Server, API, CLI command to truncate the logs of a container

Fixes #6630

Docker-DCO-1.1-Signed-off-by: Shannon Wynter docker.github@fremnet.net (github: freman)
Just using the func above as reference