title: Docker Swarm mode - equivalent docker commands to docker run -it ubuntu
body: <p>I am trying to deploy a mongodb cluster on docker swarm mode, all the mongod daemon are in the same overlay network.</p>
  
  <p>I need to configure the mongodb cluster, i am trying to find a command that works like <code>docker run -it ubuntu</code> in docke rswarm mode so i can log in, any ideas?</p>
  
  <p>Or is there any other way to access the overlay network.</p>