Hi
You are not going to get that to work in Docker.
What I use, in the rare cases i need multiple services running in same container, is supervisor.
quick example:
services.conf:
[program:sshd]
directory=/usr/local/
command=/usr/sbin/sshd -D
autostart=true
autorestart=true
redirect_stderr=true[program:someOtherService]
directory=/usr/local/
command=/usr/sbin/Otherservice -D
autostart=true
autorestart=true
redirect_stderr=true
Dockerfile
RUN apt-get install -y supervisor
ADD sshd.conf /etc/supervisor/conf.d/services.conf
CMD /usr/bin/supervisord -n