From c2d1f0b405526b3bc86211ccb1a85a83b79a98b4 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 30 Oct 2022 09:06:55 -0500 Subject: [PATCH] Document command to find host path of anonymous volume --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 217a94b7c07..4454734fd3c 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,16 @@ Now you can recreate the container with any environment variable changes, etc by docker run -d -it --name mc-new -v mc:/data -p 25565:25565 -e EULA=TRUE -e MEMORY=2G itzg/minecraft-server ``` +### Locating filesystem path of anonymous volume + +The `Source` field from the output of this command will show where the anonymous volume is mounted from: + +```shell +docker inspect -f "{{json .Mounts}}" CONTAINER_NAME_OR_ID +``` + +> **NOTE** On Windows with WSL the volumes path is `\\wsl$\docker-desktop-data\data\docker\volumes` + ## Versions To use a different Minecraft version, pass the `VERSION` environment variable (case sensitive), which can have the value