Ranchre NFS volume getting created with extra characters

Hello Everyone,

I am using below docker-compose.yml to create a volume and then attaching to my jenkins image.

version: '2'
services:
  Jenkins:
    ports:
      - 8080:8080
    image: jenkins/jenkins:lts
    stdin_open: true
    volumes:
    - jenkinsdata:/data
volumes:
  jenkinsdata:
    driver: rancher-nfs
    external: true
    driver_opts:
      onRemove: retain

However, in the Storage pools, I am seeing volume name as Jenkins_jenkinsdata_079e7 instead of jenkinsdata

Is this the expected behaviour for stack scoped volumes?

Thanks,
Vishnu

In Rancher, stack scoped volumes are named with the stack name as a prefix to indicate which stack the volume is scoped to and suffixed with a random number to guarantee no duplication. When referencing the volume, you still use the original volume name. For example, if you create a volume called foo in stackA, the volume name in the UI and on your hosts will be stackA_foo_, but to use the same volume in your service, you would use the name foo.

http://rancher.com/docs/rancher/v1.6/en/cattle/volumes/

@jrosengren
Thank you. It makes sense. I somehow overlooked this particular section in the document.