title: Docker service start after server restart
body: <p>I'm struggling with dockers (17) on Ubuntu(14). I have to run rabbitMQ on a couple of machines using docker technology. I managed to do that on one of them using</p>
  
  <pre><code>sudo docker service create -d --hostname my-rabbit --name some-rabbit -e RABBITMQ_DEFAULT_USER=user -e RABBITMQ_DEFAULT_PASS=password rabbitmq:3-management
  </code></pre>
  
  <p>but i encounter a problem on others. When i run Rabbit as a docker service everything is OK, but the problem starts after restarting the machine. After server reboot the docker is started automaticaly- i run </p>
  
  <pre><code>sudo docker service list
  sudo docker ps
  </code></pre>
  
  <p>to check that. But when I want to connect to the rabbitServer using the browser nothing happens. When i use curl or wget inside the servier it waits for the response and nothing happens. when i run </p>
  
  <pre><code>sudo service docker restart
  </code></pre>
  
  <p>then everything starts to work like it should. the ports are open all the time, and the info is saved so after restart i dont have to reopen them. One of the machines does not have this problem and everything works even after restart</p>