title: Docker and Gitlab - how to modify the docker run
body: <p>I'm very new to contentious integration with Docker and Gitlab. </p>
  
  <p>I have a situation where my script in <code>.gitlab-ci.yml</code> needs to encode files with ioncube, but that's now fully possible due to some security restrictions that Docker has placed. Therefore, I need to modify the <code>docker run</code> command that Gitlab runs when I start a job for my Gitlab project.</p>
  
  <p>According to <a href="http://blog.ioncube.com/2017/09/22/ioncube-docker-support/" rel="nofollow noreferrer">this page</a>...</p>
  
  <blockquote>
    <p>In addition, a change to the Docker security options on the container will be required to allow for the licensing process to function by using the –security-opt seccomp:unconfined option to the docker run command.</p>
  </blockquote>
  
  <p>I need to adding that extra parameter to the <code>docker run</code> call, but since Gitlab does that somewhere, I have no idea how to proceed.</p>
  
  <p>Is there a way I can get Gitlab to include <code>–security-opt seccomp:unconfined</code> when I run a job?</p>
  
  <p>EDIT: I host Gitlab on my own server.</p>