Docker login error on runner

I have a runner setup on DigitalOcean that should execute the contents of my .gitlab-ci.yml file, but I’m getting the following error:

Running with gitlab-runner 11.3.1 (0aa5179e)
  on main abcd runner 2dea47ee
Using Docker executor with image digital-ocean-abcd-runner ...
Pulling docker image digital-ocean-abcd-runner ...
ERROR: Job failed: Error response from daemon: pull access denied for digital-ocean-abcd-runner, repository does not exist or may require 'docker login' (executor_docker.go:168:0s)

This is my .gitlab-ci.yml file:

stages:
  - deploy

deploy_staging:
  stage: deploy
  image: digital-ocean-abcd-runner
  before_script:
    - sshpass -p '<PASSWORD>' ssh root@<IP_ADDRESS>
  script:
    - cd ~
    - touch hello_erybody_2018-10-07_14:18.txt
  tags:
    - digitalocean
  only:
    - master

Any ideas on what I’m doing wrong? Thanks.

Where is the digital-ocean-ccrs-runner image hosted?

What does your /etc/gitlab-runner/config.toml file look like?

Thanks dplanella, I’ve since made a few changes and it’s no longer giving me the error. Mainly, I setup a new runner and in the .yml file used “image: ubuntu:latest” which seems to work.

This is my .yml file now:

stages:
  - deploy

deploy_staging:
  stage: deploy
  image: ubuntu:latest
  script:
    - echo "HELLO WORLD" >> ~/hello_world.txt
  tags:
    - abcd-runner
  only:
    - master

I get this as output:

Checking out d7b3308b as master...
Skipping Git submodules setup
$ echo "HELLO WORLD" >> ~/hello_world.txt
Job succeeded

But for some reason, I don’t see the file “hello_world.txt” when I try to find it on the server with the runner on it?

1 Like

This is the config.toml file:

[[runners]]
  name = "abcd-runner"
  url = "https://gitlab.com/ci"
  token = "c4287d69af11be5664bd0380a52987"
  executor = "docker"
  [runners.docker]
    tls_verify = false
    image = "ruby:2.1"
    privileged = false
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]