<p>I made hadoop image based on centos using dockerfile. There are 4 nodes. I want to configure cluster using ssh-copy-id. But an error has occurred. </p>

<pre><code>ERROR: ssh: connect to host [ip] port 22: Connection refused
</code></pre>

<p>How can I solve this problem?</p>

<p><code>ssh</code> follows a client-server architecture. So, the <code>openssh-server</code> has to be installed in the container. Now <code>ssh-copy-id</code> and other commands should run if the ip address is routable.</p>
