docker-minecraft-server icon indicating copy to clipboard operation
docker-minecraft-server copied to clipboard

multiarch-latest broken networking

Open eljohnson92 opened this issue 5 years ago • 7 comments

Trying to run with multiarch-latest I think there is a networking issue in the docker image. I tested curl with multiarch and multiarch-latest and it looks like it only works in multiarch. I think this is affecting installs. mutliarch-latest:

docker run --rm  --entrypoint=/bin/bash -it itzg/minecraft-server:multiarch-latest
root@421c7323a269:/data# curl google.com
curl: (28) Timeout was reached

multiarch:

docker run --rm  --entrypoint=/bin/bash -it itzg/minecraft-server:multiarch
root@a07d27ca01a3:/data# curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>

I tried to boil the problem down to it's simplest, let me know if I'm missing something here

eljohnson92 avatar Jan 18 '21 21:01 eljohnson92

I tried on two different hosts, but was unable to recreate the issue.

On a Linux Ubuntu 20.04 host:

geoff@nuc:~$ docker pull itzg/minecraft-server:multiarch-latest
multiarch-latest: Pulling from itzg/minecraft-server
Digest: sha256:f23c90e94a50f73259c079428adeee23130712371a019a7071ee2af0db01f805
Status: Image is up to date for itzg/minecraft-server:multiarch-latest
docker.io/itzg/minecraft-server:multiarch-latest
geoff@nuc:~$ docker run -it --rm --entrypoint bash itzg/minecraft-server:multiarch-latest
root@0a024a586292:/data# curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>

On a Docker Desktop Windows WSL 2 host:

geoff@nuc:~$ docker pull itzg/minecraft-server:multiarch-latest
multiarch-latest: Pulling from itzg/minecraft-server
Digest: sha256:f23c90e94a50f73259c079428adeee23130712371a019a7071ee2af0db01f805
Status: Image is up to date for itzg/minecraft-server:multiarch-latest
docker.io/itzg/minecraft-server:multiarch-latest
geoff@nuc:~$ docker run -it --rm --entrypoint bash itzg/minecraft-server:multiarch-latest
root@0a024a586292:/data# curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>

itzg avatar Jan 19 '21 00:01 itzg

I was running this off of my raspberry pi, so this must be an issue with my environment, I'll continue debugging on my end.

eljohnson92 avatar Jan 19 '21 17:01 eljohnson92

I have the same effect here. Raspi4, itzg/minecraft-server:multiarch-latest, installed via portainer.

[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxr-x 2 1000 1000 4096 Feb 7 2021 /data' curl: (28) Resolving timed out after 1225470232819 milliseconds

What can I do to get the container run?

dvoelkel avatar Feb 12 '21 22:02 dvoelkel

From #755 it sounds like adding privileged: true will likely fix it.

itzg avatar Feb 12 '21 23:02 itzg

I believe this is related to this bug https://github.com/moby/moby/issues/40734#issuecomment-614259072 haven't tried any of the solutions yet though

eljohnson92 avatar Feb 12 '21 23:02 eljohnson92

@itzg Setting the privilege did the trick :) thanks for that. :) Now trying to fix "curl: (6) Could not resolve host: launchermeta.mojang.com"

dvoelkel avatar Feb 13 '21 13:02 dvoelkel

This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.

github-actions[bot] avatar Nov 27 '21 02:11 github-actions[bot]