Containers not connecting to internet

Hello! I’m new to Docker, and in trying to follow a training video, I have found that my containers are lacking a connection to the internet and darn it if I can figure out why!

The OS is Windows 10, Enterprise Edition.

The App is Docker version 20.10.23, build 7155243.

The training video in question provided its own files for spinning up containers,
which can be found here: gsd/swarm-stack at master · nigelpoulton/gsd (github.com)

The Dockerfile:

Base image

FROM python:alpine

Add app code to /code inside container image

ADD . /code

Set working directory for subsequent commands

WORKDIR /code

Install dependencies

RUN pip install -r requirements.txt

Command to run when container starts

ENTRYPOINT [“python”, “app.py”]

and the docker-compose.yml file:

version: “3.8”
services:
web-fe:
image: nigelpoulton/gsd:swarm-stack
command: python app.py
deploy:
replicas: 10
ports:
- target: 8080
published: 5000
networks:
- counter-net
volumes:
- type: volume
source: counter-vol
target: /code
redis:
image: “redis:alpine”
networks:
counter-net:

networks:
counter-net:

volumes:
counter-vol:

(Please let me know if you need any further files, but copies should be able to be found at the
GitHub repository link.)

Anyway, whenever I run the command as the video tutorial instructs
(docker image build -t nigelpoulton/gsd:swarm-stack .)
and the connection that’s supposed to form with the ‘RUN pip install’ command
never properly forms and the whole thing just times out.

Again, I’m new to Docker, so I don’t know if there is some configuration element to the program itself that
I’ve missed or an element in the provided files that needs updating or what. Whatever the case, I’d appreciate any help you good folks can provide.