Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mountpoint ignored? #56

Open
mplx opened this issue Oct 31, 2017 · 1 comment
Open

Mountpoint ignored? #56

mplx opened this issue Oct 31, 2017 · 1 comment

Comments

@mplx
Copy link

mplx commented Oct 31, 2017

I'm stuck on the mountpoint opt in my docker swarm - I'd like to mount /mnt/app/volumes/data but as docker inspect shows the source dir sticks to the stacks yml file directory...

  • Expected: mount /mnt/app/volumes/data to /data
  • Happening: mounted /mnt/app to /data
  • Docker version 17.10.0-ce (f4ffd25) on Debian Stretch
  • md5sum /usr/bin/docker-volume-local-persist 815b4b931c92af3eb5417a74bf07fd35

cat /mnt/app/compose-stack.yml

version: "3"

services:

  app:
    volumes:
      - appdata:/data
...

volumes:
  appdata:
    driver: local-persist
    driver_opts:
      mountpoint: /mnt/app/volumes/data

docker stack deploy -c /mnt/app/compose-stack.yml app

docker inspect ID

...
            {
                "Type": "volume",
                "Name": "app_appdata",
                "Source": "/mnt/app",
                "Destination": "/data",
                "Driver": "local-persist",
                "Mode": "",
                "RW": true,
                "Propagation": ""
            }
...
@CWSpear
Copy link
Collaborator

CWSpear commented Apr 12, 2018

I'm not sure how this could happen. Did you figure anything out about it?

Possibilities on the top of my head: other volumes trying to use the same space that causes an issue? Are any symlinks involved? I think it should work with symlinks, but I haven't really tested. Just throwing out ideas here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants