Link docker volume files to host filesystem on mac

246 Views Asked by At

For docker-for-mac is there a way to symlink or in any way get the files created by volumes (using docker volume create) on the host system?

I can check the files using

screen /Users/duvunuriz/Library/Containers/com.docker.docker/Data/vms/0/tty

and

docker run --rm -it -v /:/vm-root alpine ls -l /vm-root/var/lib/docker/volumes

And similarly with this container I am able to backup the files.

But I want to get them on host filesystem, such that I can edit those files and they directly get reflected in the volume. Any workaround to symlink or get them via another container like above are also welcome.

0

There are 0 best solutions below