title: How to start docker daemon automatically with custom arguments in Ubuntu?
body: <p>I need to start docker daemon with some command line arguments in Ubuntu, and when doing so manually, the following command works fine: </p>
  
  <pre><code>$ dockerd -H fd:// -H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock
  </code></pre>
  
  <p>The above command makes it possible for me to integrate docker with PhpStorm's docker plugin, and configure containers from there. Docker daemon starts listening to TCP port 2375 that is used by PhpStorm in my case.</p>
  
  <p>I need to start docker daemon automatically with the same parameters, and it seems that there is a lot of controversial information about it. I tried many different solutions, including changing <code>/etc/default/docker</code> or <code>/etc/systemd/system/docker.service.d/docker.conf</code> and editing <code>DOCKER_OPTS</code> parameter there.</p>
  
  <p>How can I run docker daemon with the above command line arguments automatically in Ubuntu 16.04? </p>