title: How can I set negative niceness of a docker process?
body: <p>I have a testenvironment for code in a docker image which I use by running bash in the container:</p>
  
  <pre><code>me@host$ docker run -ti myimage bash
  </code></pre>
  
  <p>Inside the container, I launch a program normally by saying</p>
  
  <pre><code>root@docker# ./myprogram
  </code></pre>
  
  <p>However, I want the process of myprogram to have a negative niceness (there are valid reasons for this). However:</p>
  
  <pre><code>root@docker# nice -n -7 ./myprogram
  nice: cannot set niceness: Permission denied
  </code></pre>
  
  <p>Given that docker is run by the docker daemon which runs as root and I am root inside the container, why doesn't this work and <strong>how can force a negative niceness</strong>?</p>
  
  <p><em>Note: The docker image is running debian/sid and the host is ubuntu/12.04.</em></p>