title: How can I numactl membind a process inside Docker container?
body: <p>I have an Intel Xeon Phi 64-core CPU with 16GB <strong>on-chip memory</strong> set as NUMA node 1.  I want to bind a process running inside a Docker container to this NUMA node, but it errors out:</p>
  
  <pre><code>root@Docker$ sudo numactl --membind 1 python script.py
  Error: set_mempolicy: Operation not permitted
  setting membind: Operation not permitted
  </code></pre>
  
  <p>I also tried to bind the entire Docker mothership to NUMA node 1, but no luck:</p>
  
  <pre><code>localhost$ sudo numactl --membind 1 docker run xyz /bin/bash
  </code></pre>
  
  <p>This doesn't give any error, but shows no utilization of on-chip memory.</p>
  
  <p>My question is: How can I bind a process to NUMA node 1 successfully?  Thanks!</p>