Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Casey Local
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

1 vote
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

Felipe Rodriguez
Contributor
September 10, 2024

Thanks Theodora

Like Theodora Boudale likes this

Suggest an answer

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

Atlassian Community Events