Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-21693

docker in docker commands fail on Debian 11 with atlassian default docker service

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      When using Debian 11 as host system for self-hosted runner, if user using docker service in the runner step, docker service will raise “sed:write error”.

      Here is the sample yaml to reproduce the issue:

       

      pipelines:
        branches:
          default:
            - step:
                runs-on:
                  - self.hosted
                services:
                  - docker
                script:
                  - docker version 

       

      It is related to this issue: https://github.com/docker-library/docker/issues/308

      Work around

      To work around this issue, user can use official docker:dind instead.

       

      definitions:
          services:
            docker: 
              image: docker:dind
      
      pipelines:
        branches:
          default:
            - step:
                runs-on:
                  - self.hosted
                services:
                  - docker
                script:
                  - docker version  

       

       

              Unassigned Unassigned
              a3002c6cc185 Swetha Boyapati
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: