title: openssh-server doesn't start in Docker container
body: <p>I am having a weird problem.</p>
  
  <p>I am not able to ssh to docker container having ip address <code>172.17.0.61</code>.</p>
  
  <p>I am getting following error:</p>
  
  <pre><code>$ ssh 172.17.0.61
  ssh: connect to host 172.17.0.61 port 22: Connection refused
  </code></pre>
  
  <p>My <code>Dockerfile</code> does contain <code>openssh-server</code> installation step:</p>
  
  <pre><code>RUN apt-get -y install curl runit openssh-server
  </code></pre>
  
  <p>And also step to start ssh: </p>
  
  <pre><code>RUN service ssh start
  </code></pre>
  
  <p>What could be the issue?</p>
  
  <p>When I enter into container using <a href="https://github.com/jpetazzo/nsenter" rel="nofollow"><code>nsenter</code></a> and start <code>ssh</code> service then I am able to ssh. But while creating container <code>ssh-server</code> doesn't seems to start.</p>
  
  <p>What should I do?</p>