How to pull Docker image from Docker Hub into .gitlab-ci.yml file?

I want to use anaconda3, which has docker image in Docker Hub, into my .gitlab-ci.yml file. How do I pull Docker image anaconda3 from Docker Hub?

Hi @tnguyen75 :wave:

You’ll want to define the image: to use in your .gitlab-ci.yml.

For example:

job-name:
  image: continuumio/anaconda3
  script:
    - echo "hello world"

Thanks for the suggested solution!

It works!

1 Like