0

I am using Azure Pipeline to automated build my Yocto Project in a docker container. Here is snapshot of the code syntax (Azure Pipeline .yml file)

trigger:
- main

resources:
  containers:
  - container: abc-build
    image: my-docker-registry-address
    options:
    volumes: /mnt:/mnt

But it has error while executing, Please refer to below : enter image description here

I fail to do mounting between my build server and docker container, both are Linux environment. Do you know how to fix it ?

Anson Tan
  • 1,256
  • 2
  • 13
  • 34

1 Answers1

1

Change to this and it works

resources:
  containers:
  - container: abc-build
    image: my-docker-registry-address
    options:
    volumes:
    - /mnt:/mnt
Anson Tan
  • 1,256
  • 2
  • 13
  • 34
  • Hi, Thanks for the sharing, you could [mark it as an answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work/5235#5235), In this case, others could directly find the useful solution and we could archive this thread. Thanks. Have a nice day. :) – Vito Liu Jan 27 '21 at 09:32