I have important config files needed for the nms tool inside container directory - /var/lib/enms. Also when the container run other data related to the container save it in the same /var/lib/enms directory. I wanted to take backup of this data in local host machine. so run the below command.
docker run -v /root/nms:/var/lib/enms mohanstack/nms:1.0
Above docker command completely wiped off the container directory /var/lib/enms. so container throws error and quits
But when If I did below steps, the already existing data in container /var/lib/enms not erasing and newly added data are copied to created volume and container works fine.
docker volume create nmsvol
docker run -v nmsvol:/var/lib/enms mohanstack/nms:1.0
But the problem is I dont find a way to access the volume data nmsvol. Is there way that I access the data of the nmsvol from the local system,