https://github.com/crosbymichael/minecraft-docker
Minecraft dockerfile
https://github.com/crosbymichael/minecraft-docker
Last synced: 3 months ago
JSON representation
Minecraft dockerfile
- Host: GitHub
- URL: https://github.com/crosbymichael/minecraft-docker
- Owner: crosbymichael
- Created: 2014-04-12T17:43:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T19:56:51.000Z (about 7 years ago)
- Last Synced: 2024-12-30T01:20:03.123Z (5 months ago)
- Size: 3.91 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## minecraft server
Server runs as user daemon and any volumes mounted should be owned by that user as well. ( uid and gid of 1 ). You should run the server with cpu and memory limits if possible and use an external bind mounted volume for persistent data.
*Run the server*
```bash
mkdir /myminecraft-world && chown 1:1 /myminecraft-worlddocker run -d -p 25565:25565 -v /myminecraft-world:/minecraft --memory 1536m --cpuset 2 crosbymichael/minecraft
```