itzg / itzg/docker-minecraft-bedrock-server

curl: (6) Could not resolve host: www.minecraft.net

Open
#546 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1.9k
Forks
303
Avg merge
2h 26m
Merged PRs (30d)
2

Description

Here is what I got from running the docker command:
`docker run -it --rm --name creative_minecraft -e DIRECT_DOWNLOAD_URL=https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.95.1.zip -e EULA=TRUE -e GAMEMODE=creative -e SERVER_NAME=DEMO1 -e OPS=Admin1231234 -e ENABLE_COMMAND_BLOCK=true -e ALLOW_CHEATS=true -p 19132:19132/udp -v mc-volume:/mcdata itzg/minecraft-bedrock-server`

`Using direct download URL from DIRECT_DOWNLOAD_URL environment variable.
VERSION=LATEST is explicitly set, using it with DIRECT_DOWNLOAD_URL.
Downloading Bedrock server version LATEST ...
curl: (6) Could not resolve host: www.minecraft.net
ERROR failed to download from https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.95.1.zip
Double check that the given VERSION is valid
`
I am able to access the url on the host with both curl and wget but not though the following command: `docker run --rm --entrypoint curl itzg/minecraft-bedrock-server -Aitzg/minecraft-bedrock-server -v https://www.minecraft.net/en-us/download/server/bedrock`
Any solutions? Is there a way to use a given game package (zip) instead of the internal downloader?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the provided docker run command and the --entrypoint curl check, comparing DNS resolution inside the container with resolution on the host. Determine whether the downloader can use the supplied Bedrock ZIP or needs corrected container networking; done means the documented command downloads the specified package successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.