title: Illegal option: -cacerts for keytool in gitlab-ci with gradle:jdk8
body: <p>I use the next configuration in gitlab-ci.yml :</p>
  
  <pre><code>image: gradle:jdk11
  stages:
    - build
    - publish
  before_script:
    - wget -P /tmp http://www.some.com/SOME.crt
   - keytool -importcert -trustcacerts -file /tmp/SOME.crt -cacerts -alias "Some" -storepass changeit -noprompt
  </code></pre>
  
  <p>All works fine. But I need to change java version to 8. I edit my configuration to <code>image: gradle:jdk8</code> and got error:</p>
  
  <pre><code>....
  Illegal option: -cacerts
  </code></pre>
  
  <p>My gitlab configuration understanding is very poor. How I can fix configuration to use image gradle:jdk8 ?</p>