Mapping volume path with a colon in

I want to do

kind: pipeline
type: docker
name: default

clone:
  skip_verify: true

steps:

- name: build
  image: docker:dind
  volumes:
  - name: dockersock
    path: /var/run  
  - name: ca
    path: /etc/docker/certs.d/registry:5000
services:
- name: docker
  image: docker:dind
  privileged: true
  volumes:
  - name: dockersock
    path: /var/run
 
volumes:
- name: dockersock
  temp: {}
- name: ca
  host:
    path: /home/giles/Documents/gitea/.ca

But insists on taking the 5000 as a mode eg ro

Is there any way to do such a mapping?

it would be better

  - name: ca
    path: /etc/docker/certs.d/registry:5000
    mode: ro

I am not aware of any code in the Docker runner that would parse :5000. I did a cursory review of the runner code to refresh my memory, and could not find anything. If something is interpreting :5000 as :ro it would have to be the Docker daemon. You can review the runner code here: https://github.com/drone-runners/drone-runner-docker.

just for reference but https://docs.docker.com/engine/api/v1.40/#operation/ContainerCreate then expand Hostconfig

binds are in the form source:dest:options