Docker stuck at "RUN apt-get update && apt-get install -y gnupg gosu curl ca-certificates zip unzip"

Hello,

New to docker but I really want to be able to use it.

I’m on Windows 11 with WSL2, Ubuntu Jammy, container build is not supposed to take forever right?!

“[ 4/11] RUN apt-get update && apt-get install -y gnupg gosu curl ca-certificates zip unzip”

has been going for hours. Disabled VPN and Firewall, logged into hub.docker in terminal,

Any ideas? Thanks ahead of time for your help.

Are you sure it is running and not just frozen somehow?

One way you can test someting like this is running a container using a simple docker run -it imagename bash command and using apt install there from the terminal.You can also try with only one package and an other aftet that. Even if the container can’t access the repository it should fail sooner with a timeout.