在Windows 7上使用VirtualBox,我使用此命令在文件夹C:/TeamCity
docker run -it --name teamcity-server-instance -v Data:/data/teamcity_server/datadir -v Logs:/opt/teamcity/logs -p 8111:8111 jetbrains/teamcity-server
C:/TeamCity
是VirtualBox中的共享文件夹。 TeamCity运行良好,但是我无法确定文件的保存位置。 C/TeamCity/Logs
为空。
检查Docker包含以下内容:
"Mounts": [
{
"Type": "volume",
"Name": "Data",
"Source": "/mnt/sda1/var/lib/docker/volumes/Data/_data",
"Destination": "/data/teamcity_server/datadir",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "Logs",
"Source": "/mnt/sda1/var/lib/docker/volumes/Logs/_data",
"Destination": "/opt/teamcity/logs",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
}
],
我假设"/mnt/sda1/var/lib/docker/volumes/Data/_data"
在VirtualBox 192.168.99.100计算机上,但是我如何知道它在Windows物理主机上本地映射的位置?