title: Parameters to pass to docker run automatically on startup
body: <p>I'm trying to run the following to docker run upon its invocation. For example, I need to specify this all the time I run docker</p>
  
  <pre><code>docker run -m 384m --cpu-shares 512 --read-only
  </code></pre>
  
  <p>Instead I'm trying to create bash script named docker-run.sh with the following contents</p>
  
  <pre><code>docker run -m 384m --cpu-shares 512 $@
  </code></pre>
  
  <p>So I need to specify </p>
  
  <pre><code>docker-run.sh -i -d --name rabbit2 -p 172.17.0.1:17235:80 -t centos7:v2
  </code></pre>
  
  <p>However, my session gets stuck after running this and I have to wait until my SSH session times out to login back to my system. 
  How are other users doing it? </p>