{"id":17061806,"url":"https://github.com/phlak/docker-minecraft","last_synced_at":"2025-09-05T22:34:33.424Z","repository":{"id":23024477,"uuid":"26377046","full_name":"PHLAK/docker-minecraft","owner":"PHLAK","description":"Docker image for (vanilla) Minecraft server.","archived":false,"fork":false,"pushed_at":"2025-07-03T21:38:51.000Z","size":251,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-03T22:27:38.827Z","etag":null,"topics":["alpine-linux","docker","docker-image","minecraft","minecraft-server"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/phlak/minecraft","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PHLAK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"PHLAK","custom":"https://paypal.me/ChrisKankiewicz"}},"created_at":"2014-11-08T22:34:19.000Z","updated_at":"2025-07-03T21:33:44.000Z","dependencies_parsed_at":"2023-10-01T21:43:09.554Z","dependency_job_id":"9836ad72-40ae-44fe-bcaf-e5a02aa83e6f","html_url":"https://github.com/PHLAK/docker-minecraft","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/PHLAK/docker-minecraft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2Fdocker-minecraft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2Fdocker-minecraft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2Fdocker-minecraft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2Fdocker-minecraft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHLAK","download_url":"https://codeload.github.com/PHLAK/docker-minecraft/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2Fdocker-minecraft/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273832374,"owners_count":25176262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine-linux","docker","docker-image","minecraft","minecraft-server"],"created_at":"2024-10-14T10:48:15.858Z","updated_at":"2025-09-05T22:34:33.404Z","avatar_url":"https://github.com/PHLAK.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/PHLAK","https://paypal.me/ChrisKankiewicz"],"categories":[],"sub_categories":[],"readme":"docker-minecraft\n================\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"docker-minecraft.png\" alt=\"Docker Minecraft\" width=\"500\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/PHLAK/docker-minecraft/discussions\"\u003e\u003cimg src=\"https://img.shields.io/badge/Join_the-Community-7b16ff.svg?style=for-the-badge\" alt=\"Join the Community\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/users/PHLAK/sponsorship\"\u003e\u003cimg src=\"https://img.shields.io/badge/Become_a-Sponsor-cc4195.svg?style=for-the-badge\" alt=\"Become a Sponsor\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://paypal.me/ChrisKankiewicz\"\u003e\u003cimg src=\"https://img.shields.io/badge/Make_a-Donation-006bb6.svg?style=for-the-badge\" alt=\"One-time Donation\"\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://hub.docker.com/repository/docker/phlak/minecraft/tags\"\u003e\u003cimg alt=\"Docker Image Version\" src=\"https://img.shields.io/docker/v/phlak/minecraft?style=flat-square\u0026sort=semver\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://hub.docker.com/repository/docker/phlak/minecraft\"\u003e\u003cimg alt=\"Docker Pulls\" src=\"https://img.shields.io/docker/pulls/phlak/minecraft?style=flat-square\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/PHLAK/docker-minecraft/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/PHLAK/docker-minecraft?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://hub.docker.com/r/phlak/minecraft/builds\"\u003e\u003cimg alt=\"Docker Cloud Build Status\" src=\"https://img.shields.io/docker/cloud/build/phlak/minecraft\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    Docker image for \u003ca href=\"https://minecraft.net/\"\u003eMinecraft\u003c/a\u003e server.\n\u003c/p\u003e\n\n---\n\nRunning the Container\n---------------------\n\nFirst create a named data volume to hold the persistent world and config data:\n\n    docker volume create --name minecraft-data\n\nThen run the Minecraft server:\n\n    docker run -it -d -p 25565:25565 -v minecraft-data:/etc/minecraft --name minecraft-server phlak/minecraft\n\n#### Optional 'docker run' Arguments\n\n\u003cdl\u003e\n    \u003cdt\u003e\u003ccode\u003e-e _JAVA_OPTIONS='-Xms256M -Xmx2048M'\u003c/code\u003e\u003c/dt\u003e\n    \u003cdd\u003eSet JVM arguments for minimum/maximum memory consumption (default: '-Xms256M -Xmx2048M')\u003c/dd\u003e\n\u003c/dl\u003e\n\n\u003cdl\u003e\n    \u003cdt\u003e\u003ccode\u003e-e TZ=America/Phoenix\u003c/code\u003e\u003c/dt\u003e\n    \u003cdd\u003eSet the timezone for your server. You can find your timezone in this \u003ca href=\"https://goo.gl/uy1J6q\"\u003elist of timezones\u003c/a\u003e. Use the (case sensitive) value from the \u003ccode\u003eTZ\u003c/code\u003e column. If left unset, timezone will be UTC.\u003c/dd\u003e\n\u003c/dl\u003e\n\n\u003cdl\u003e\n    \u003cdt\u003e\u003ccode\u003e--restart unless-stopped\u003c/code\u003e\u003c/dt\u003e\n    \u003cdd\u003eAlways restart the container regardless of the exit status, but do not start it on daemon startup if the container has been put to a stopped state before. See the Docker \u003ca href=\"https://goo.gl/Y0dlDH\"\u003erestart policies\u003c/a\u003e for additional details.\u003c/dd\u003e\n\u003c/dl\u003e\n\n**NOTE:** See the [Minecraft Wiki](http://minecraft.gamepedia.com/Server/Requirements) for more info\non memory requirements.\n\nEditing the Server Config\n-------------------------\n\nOnce you have a running container, you can edit the Minecraft [server config](https://minecraft.gamepedia.com/Server.properties) with:\n\n    docker exec -it minecraft-server vi /etc/minecraft/server.properties\n\nAfter saving changes, restart your container with `docker restart minecraft-server`\n\nAdding OPs\n----------\n\nOnce you have a running server container you can add OPs by running:\n\n    docker exec minecraft-server ops [PLAYER_NAMES]\n\n**NOTE:** Replace `[PLAYER_NAMES]` with the name of one or more players you wish to give OP\nprivileges separated by a space. If a players name contains spaces wrap it in quotation marks.\n\nHere's an example granting OP to three players with name's `Marty`, `Jennifer` and  `Doc Brown`:\n\n    docker exec minecraft-server ops Marty Jennifer \"Doc Brown\"\n\nRunning Server Commands\n-----------------------\n\nYou can run [commands](https://minecraft.gamepedia.com/Commands) on the server\n(e.g. `kick`, `ban`, `say`, etc.) by attaching to the running container and\nrunning the commands. Attach to the server by running:\n\n    docker attach minecraft-server\n\nOnce attached you can run your commands like normal.\n\n    say Hello world!\n    [10:11:56] [Server thread/INFO]: [Server] Hello world!\n    list\n    [10:12:08] [Server thread/INFO]: There are 3 of a max 10 players online: Marty, Jennifer, Doc Brown\n    seed\n    [10:12:19] [Server thread/INFO]: Seed: [-5234790158571010769]\n\n**NOTE:** In order to detach from the container and leave it running use the\n`Ctrl + P` then `Ctrl + Q` key sequence.\n\nUpgrading the Server\n--------------------\n\nFirst pull down the latest image:\n\n    docker pull phlak/minecraft\n\nRemove your running server container:\n\n    docker rm -f minecraft-server\n\nAnd run a new one with the same command/arguments as before.\n\nTroubleshooting\n---------------\n\nFor general help and support join our [GitHub Discussions](https://github.com/PHLAK/docker-minecraft/discussions) or reach out on [Twitter](https://twitter.com/PHLAK).\n\nPlease report bugs to the [GitHub Issue Tracker](https://github.com/PHLAK/docker-minecraft/issues).\n\nCopyright\n---------\n\nThis project is licensed under the [MIT License](https://github.com/PHLAK/docker-minecraft/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphlak%2Fdocker-minecraft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphlak%2Fdocker-minecraft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphlak%2Fdocker-minecraft/lists"}