title: How can I remotely connect to docker swarm?
body: <p>Is it possible to execute commands on a docker swarm cluster hosted in cloud from my local mac? If yes, how?</p>
  
  <p>I want to execute command such as following on docker swarm from my local:</p>
  
  <pre><code>docker create secret my-secret &lt;address to local file&gt;
  docker service create --name x --secrets my-secret image
  </code></pre>