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

XMLWordPrintable

      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  

       

       

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

              Created:
              Updated:
              Resolved: