title: I2C inside a docker container
body: <p>I am trying to use the i2c pins on a raspberry pi inside a docker container. I install all my modules using RUN but when I use the CMD to run my python program i get an error that says </p>
  
  <pre><code>Trackback (most recent call last):
  file "test.py", line 124, in &lt;module&gt;
  bus = smbus.SMBus(1)
  IOError: [Errno 2] No such file or directory
  </code></pre>
  
  <p>If I run this on my raspberry pi and not in my container it works fine. But when I turn off my i2c pins on my raspberry pi it gives me the same error when running it. So I know it has to do with my i2c pins being activated. Does anyone know how to resolve this problem?</p>