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)
Hmmm there are terrible examples in the funcs above and below, but I'll fix this one.