- I was working on a Dockerfile used to create an Android docker image.
- After creating the image and running the container , I have checked ssh service using command (service ssh status) and noticed that ssh service is not running.
I have tried to put some commands on Dockerfile like :
- CMD ["/usr/sbin/sshd","-D"]
- EXPOSE 22
- RUN service ssh start
But none of these commands is able to run ssh service after running the container.
Can anyone help here please ?