mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-21 06:22:40 +00:00
Document command to find host path of anonymous volume (#1811)
This commit is contained in:
1 parent
885a921b08
commit
0d9bfa6478
1 file changed
+10
@@ -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
|
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
|
## Versions
|
||||||
|
|
||||||
To use a different Minecraft version, pass the `VERSION` environment variable (case sensitive), which can have the value
|
To use a different Minecraft version, pass the `VERSION` environment variable (case sensitive), which can have the value
|
||||||
|
|||||||
Reference in new issue
Block a user