How to fix this issue "no suitable node (scheduling constraints not satisfied on 1 node)" in docker swarm while deploying registry? : <p>I have a docker swarm in a virtual machine with 2 core 4GB ram Centos.</p>

<p>In the swarm when I deploy docker private registry (registry 2.6.4) it shows service status as <strong>pending</strong> forever.
I used 
<strong><code>docker service ps &lt;&lt;registry_name&gt;&gt;</code></strong></p>

<p>And when i inspect using <strong><code>docker inspect &lt;&lt;task_id&gt;&gt;</code></strong> in message I got this
 <strong><em>"no suitable node (scheduling constraints not satisfied on 1 node)".</em></strong></p>

<p>I tried service restart and redeployment.</p>

<p>How to fix this?</p>
