I've run into a problem where a selfhosted runner, no longer works with docker commands.
I'm using a Linux runner, and adds docker with the services: docker in the bitbucket pipelines yml.
It worked back in version 1.364
Runner matching labels:
- linux
- self.hosted
Runner name: Stat Migration Runner
Runner labels: statapi, self.hosted, linux
Runner version:
current: 1.364
latest: 1.364
where it uses a build and docker image:
Images used:
build: atlassian/default-image@sha256:5ce8190e86ba11a8e935735ad2059524b020a0a6f652ff4df614353329af0c07
On the newest version 1.371 it doesn't use the docker image:
Runner matching labels:
- linux
- self.hosted
Runner name: Stat Migration Runner
Runner labels: statapi, self.hosted, linux
Runner version:
current: 1.371
latest: 1.371
Images used:
build: atlassian/default-image@sha256:5ce8190e86ba11a8e935735ad2059524b020a0a6f652ff4df614353329af0c07
extract from pipelines yml: (apologies for formatting, not sure how to add code blocks or no-format blocks. )
Welcome to the community.
While using the latest version of Linux Docker runners, would it be possible for you to try to use the image docker:dind as your Docker image as a service?
You can add the "definitions:" configuration below to your YAML file above the "pipelines:" config.
definitions:
services:
docker:
image: docker:dind
pipelines:
branches:
'master':
- step:
..........................................
Once done, try to run builds again.
Let me know how it goes.
Regards,
Mark C
@Mark C I took over from Kristian and have changed the config as per your suggestion. I also recreated the runner and now it runs as expected.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great. Glad to know it works.
Do let me know if you have further questions that I can help with and feel free to mark this question as answered as well.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mark C
I am also facing the same problem. But your above solution did not fix the problem for me. I am getting error "The Docker feature is not supported on this self-hosted runner's platform.". The error screenshot is attached below.
Below is my bitbucket-pipelines.yml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.