Broken builds with docker 19.03.13

@adamaria for me it was related to having a volume. Having read that code/change I realised that the only difference between what was and wasn’t working is that the ones that failed were using volumes. Removing them has allowed us to build properly. It’s awful because I was using just a temporary directory provided by the drone builder

1 Like

I am also having so problems with volumes in the latest version.
I took a look at the docs but do not see any problems.
Is there any solution?

kind: pipeline
name: docs
type: docker

steps:
- name: build the docs
  image: python:3.8
  volumes:
  - name: site
    path: /drone/src/site
  commands:
    - pip install --no-cache-dir -r requirements.txt
    - mkdocs build

- name: Build a docker image and push it
  image: plugins/docker
  volumes:
  - name: site
    path: /site
  settings:
    username:
      from_secret: username
    password:
      from_secret: password
    repo: registry.blauweschuit.com/bsdocs
    registry: registry.blauweschuit.com/
    tags: latest
  when:
    branch:
      - main
    event:
      - push

volumes:
- name: site
  temp: {}

@Matthijz98 you need to remove the unused volume from your docker step. This volume is unused because it sits outside the Docker context and therefore its contents cannot be referenced in your Dockerfile, so removing should not cause any problems.

  name: Build a docker image and push it
  image: plugins/docker
- volumes:
- - name: site
-   path: /site