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)
Add app code to /code inside container image
ADD . /code
Set working directory for subsequent commands
RUN pip install -r requirements.txt
Command to run when container starts
ENTRYPOINT [“python”, “app.py”]
and the docker-compose.yml file:
command: python app.py
- target: 8080
- type: volume
(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.