Implement tail for docker logs

Fixes #4330

Here is first attempt. Docs and defaults needs discuss.
Passing a negative number, zero or a non-integer to `--tail` is invalid and the value is set to `all` in that case. This behavior may change in the future.