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.";
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.