title: Can I use my GPU from a docker container on a MacBook Pro ? (AMD Radeon GPU)
body: <p>I would like to run a GPU enabled app (Gazebo) inside a docker container on my MacBook Pro.</p>
  
  <p>I seemed to me, through my research, that about a year ago, Docker released a native Docker app for MacOS.</p>
  
  <p>Before that, Docker used to spawn an entire Linux VM and run the container on top of it. </p>
  
  <p>Now, it apparently uses some native hypervisor framework, making it more optimized and closer to the hardware, changing entirely Docker's approach to containerization on a Mac.</p>
  
  <p>All this is not very clear to me and I am not sure of everything I stated.</p>
  
  <p><strong>Is it now possible to use my macbook pro's GPU from a docker container, and, if yes, how ?</strong></p>
  
  <p>The command line I'm using right now, which works for regular X11 apps but not GPU-enabled apps like Gazebo is:</p>
  
  <pre><code>xhost +
  docker run -it -e DISPLAY=$ip:0 -v /tmp/.X11-unix:/tmp/.X11-unix image_name bash
  </code></pre>