Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Self-hosted Docker Runner using custom images times out or no such image found (404)

Casey Local November 16, 2022

I have setup the Docker Runner on a Redhat 8 instance. When executing a simple pipeline, it eventually appears to time out or return a no images found message. Is the following correct? Do I need to define the location of the images, all of which are in Docker Hub?

I'm also seeing the following message on occasions during step1:

"Timed out after 5 minutes waiting for 2 remaining services to be ready"

definitions:
  services:
    docker-php74:
      type: docker 
      image: php:7.4.33-fpm
    docker-node-erbium:
      type: docker 
      image: node:erbium
      
pipelines:
  default:
    - step:
        name: Step 1
        runs-on: 
          - self.hosted
          - linux

        services:
          - docker-php74
        script:
          - docker info
    - step:
          name: Step 2
          services:
            - docker-node-erbium
          runs-on: 
            - self.hosted
            - linux

          script:
            - docker info
            - echo "This step will use the defult docker service defenition.";

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 5, 2022

Hi @Casey Local and welcome to the community.

You don't need to define the location for Docker Hub images. I suspect that the Docker images you are using may not be dind images, resulting in this error.

Can you try using the docker:dind image instead and see if your build succeeds?

I am also unsure why you are trying to use php and node images in the Docker service. If you want to use these images as a build container, you can use them in the definition of each step instead. You could try e.g. something as follows:

definitions:
services:
docker:
type: docker
image: docker:dind

pipelines:
default:
- step:
name: Step 1
image: php:7.4.33-fpm
runs-on:
- self.hosted
- linux
services:
- docker
script:
- docker --version
- step:
name: Step 2
image: node:erbium
runs-on:
- self.hosted
- linux
services:
- docker
script:
- docker info

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events