How to limit or rotate Docker container logs?

can this configuration be set to specific containers?