Named volume example (#70)

This commit is contained in:
Luis Marroquin authored and GitHub committed 2020-06-25 14:39:15 -05:00
1 parent 886d0856c5
commit c84524ea09
1 file changed
+8 -1
+8 -1
View File
@@ -76,7 +76,14 @@ docker run -d -it --name bds-flat-creative \
- `/data` : the location where the downloaded server is expanded and ran. Also contains the - `/data` : the location where the downloaded server is expanded and ran. Also contains the
configuration properties file `server.properties` configuration properties file `server.properties`
You can create a `named volume` and use it as:
```shell
docker volume create mc-volume
docker run -d -it --name mc-server -e EULA=TRUE -p 19132:19132/udp -v mc-volume:/data itzg/minecraft-bedrock-server
```
## Connecting ## Connecting
When running the container on your LAN, you can find and connect to the dedicated server When running the container on your LAN, you can find and connect to the dedicated server