title: Docker container doesn't start after reboot with enabling systemd script
body: <p>I have the following systemd script:</p>
  
  <pre><code>[Unit]
  Description=Hub docker container
  After=docker.service
  
  [Service]
  User=root
  ExecStart=/home/hub/hub.sh
  ExecStop=/bin/docker stop hub
  ExecStopPost=/bin/docker rm hub
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  
  <p>Running the command: <strong>systemctl start/stop hub</strong> works fine. I also created the symlink by using <strong>systemctl enable hub</strong>. Why doesn't my service start up after I reboot the entire laptop? I followed the docker guide so that Docker starts up on reboot, but for some reason my container doesn't start up. Am I missing a field in my script?</p>
  
  <p>The command I am using my ExecStart, "/home/hub/hub.sh" script is:</p>
  
  <pre><code>docker run --net=host --restart=always --name hub -t hub
  </code></pre>
  
  <p>After reboot I get the following when I type systemctl status hub:</p>
  
  <pre><code>● hub.service - Hub docker container
     Loaded: loaded (/etc/systemd/system/hub.service; enabled; vendor preset: disabled)
     Active: inactive (dead)
  </code></pre>