Docker Community Forums

Share and learn in the Docker community.

Where are data volumes located in Windows


(Manuel Patrone) #1

Expected behavior

Actual behavior

docker run -ti --volumes-from data ubuntu:14.04 /bin/bash
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
44e9761c2ca9 ubuntu “/bin/bash” 12 seconds ago Exited (0) 8 seconds ago ubuntufrom

D:>docker inspect -f {{.Mounts}} ubuntufrom
[{e389b323a910bb06d57df8de13d2062d133ce40ca792b459c7dd45b704318b62 var/lib/docker/volumes/e389b323a910bb06d57df8de13d2062d133ce40ca792b459c7dd45b704318b62/_data /cookbook local true }]

Information

  • the output of:
    • pinata diagnose -u on OSX
    • DockerDebugInfo.ps1 using Powershell on Windows
  • a reproducible case if this is a bug, Dockerfiles FTW
  • page URL if this is a docs issue or the name of a man page
  • host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )

Steps to reproduce the behavior


(Michael Friis) #2

Volumes like those will be local to the Linux VM running on Windows and not be available on the Windows host. You can use them with other containers, but not from the host.

If you enable filesharing in settings, you can share host folders with running containers.

Let us know if that’s not what you need for your use case.

Michael


(Dieter Menne) #3

There is a VERY long and very often read thread on the subject of volume mounts in Windows:

https://forums.docker.com/t/volume-mounts-in-windows-does-not-work?source_topic_id=13207

The reports are detailed, some of them from contributors who really know this stuff.

It would be good to hear some advice.


(Manuel Patrone) #4

Thanks for the response Michael.

I guess that I was used to be able to locate the data container on the host file system, that’s all. No problem…