Skip to content

Is it possible to do Docker-compose pull from Gitlab CI?

I have images in my docker-compose.yml file that I would like to pull when my CI Runner is executing the build.

Everytime I try I run into this:

Pulling web (registry.gitlab.com/xxxxx/xxxxx/crm:latest)...
Pulling repository registry.gitlab.com/xxxxx/xxxxx/crm
Error: image xxxxx/xxxxx/crm:latest not found

Even when I login with docker login registry.gitlab.com and then execute docker pull xxxxx/xxxxx/crm, I get the same error.

EDIT:

I tried also with docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com according to this and that failed as well.

Edited by Andrew Graham-Yooll