Tried all the possible ways provided by bitbucket:
still unable to run docker commands
showing
bash: docker: command not found
G'day @shreya gaikwad and welcome to the community.
May I know what type of runner you are using and would it be possible to share your YML? I wish to review your YML config to further understand why you are getting the error.
Please remove any credentials etc before sharing the YML.
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the update. It looks like you are using docker in steps, but you did not specify docker services in the YAML; hence your steps were failing:
pipelines: default: - step: runs-on: - 'self.hosted' - 'my.custom.label' services: - docker script: - docker run alpine
For more information, please check our documentation at:
https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syahrul,
I have tried that also but still I was facing different error.
Once again I tried as you told ,I have copied the yml which you shared and put my runner name.
Still getting the error as below:
The Docker feature is not supported on this self-hosted runner's platform.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like you are using a Linux shell that doesn't support a Service container. Could you switch your runner to Linux docker instead and let me know if that works?
Regards,
Syahrul
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.