Gitlab Installation and using docker

Hi,

Do I have to install Gitlab Docker Image to later use Gitlab CI config file .gitlab-ci.yml with image: openjdk:8-jdk defining the Docker image or I can use Omnibus package installation?

Thanks