SSHd logs in Docker container not shown by `docker logs`

Solution 1:

Use -e command-line option to forward all messages to standard error (from sshd docs):

-e Write debug logs to standard error instead of the system log.

I found a good example in the following Docker file:

simple alpine based SSHD server