Docker shared volume creation -
i trying create docker volume shared between 2 hosts. let's have 2 hosts , b. when volume created on host following command:
docker volume create --driver local --opt type=nfs --opt o=addr=b,rw --opt device=:/tmp/dir --name foo
after inspection of volume, result following:
docker volume inspect foo [ { "name": "foo", "driver": "local", "mountpoint": "/var/lib/docker/volumes/foo/_data", "labels": {}, "scope": "local" } ]
my question is: why mountpoint directory of volume doesn't point directory /tmp/dir, default docker volume location? how can consider data in directory host b/tmp/dir sharable?
thanks in advance!
Comments
Post a Comment