docker-minecraft-server: Corrupted world on Windows 11
Describe the problem
After server restart, the server world files are corrupted. Everything works well while running pure Paper server without docker and also running same container on macOS or Linux. Recreating container doesn’t help anything, after server restart I’m getting the same errors.
Container definition
version: "3.8"
services:
mc:
image: itzg/minecraft-server:java16
ports:
- "25565:25565"
environment:
TYPE: PAPER
VERSION: 1.17.1
EULA: "TRUE"
ONLINE_MODE: "FALSE"
COPY_CONFIG_DEST: /data
volumes:
- ./data/mc:/data
- ./mc:/config
Container logs
Full server log is available here https://teksusik.pl/docker.log
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 1
- Comments: 37 (14 by maintainers)
Pretty sure this was the case. For some reason, every time I installed Docker Desktop on my Windows computer, with a single WSL OS installed, it never automatically enabled Docker support for such OS. My recommendation to anyone having this issue is to use Docker from a WSL OS directly.
If you are new to Docker on Windows 11:
Small note if you are transitioning to Windows 11 and are worried about your privacy (@itzg ✌️). There is no straight forward way of creating a local account while installing Windows 11 anymore, you’ll have to enter a@a.com as your email when the setup asks you to login with your Microsoft Account, you should get an error and then be allowed to create a local account. When installing apps from the Microsoft Store, if you get a prompt asking you to login, just close it, the apps should install nevertheless. Happy holidays everyone!🎅
Verified this is working fine:
https://user-images.githubusercontent.com/12534357/209533668-6ea46ebf-fdf8-48d0-90e4-89d2ba0e941d.mp4
Luckily my PC doesn’t have compatible hardware to run Windows 11 😉
Agreed, I’m surprised they haven’t resolved this issue by now since it seems like quite a fundamental issue.
Same issue but only for minecraft version 1.18.1
docker-file `version: “3”
services: mc: image: itzg/minecraft-server:latest ports: - 25565:25565 environment: EULA: “TRUE” VERSION: 1.18.1 TYPE: “BUKKIT” MEMORY: “10G” tty: true stdin_open: true restart: unless-stopped volumes: - ./server:/data
attach a directory relative to`
I’m sorry I misunderstood your comment:
In any case, this is not a problem with the image. It’s either something external or the PaperMC software itself. We can leave this issue open for others to find, but there’s nothing I can do to fix it.