Hi
I try my best to solve it but still failed until now
I installed the Docker and Git. I log in the Docker successfully every time when I run the command "docker-compose up ".
But the codes did not run successfully as the video shows.
In simple words,I can not get access to Google ,Youtube,Docker etc in China. But with VPN, I can use Google ,Youtube,Docker etc well . So with VPN working successfully, there must be no Internet connection problems when I run the command “docker-compose up”.
Can you give me a YouTube video link about " pulling through a mirror" that you mentioned? So I can learn and follow the video one step by one step.
I do not know what “” does mean. I can copy the errors
[web 2/9] RUN apt-get update && apt-get upgrade:
373.5 Ign:4 http://deb.debian.org/debian bookworm/main amd64 Packages
373.5 Err:4 (the same link as above! Note: An error occurred: Sorry, new users can only put 2 links in a post.)
373.5 Connection failed [IP: 151.101.90.132 80]
373.5 Fetched 445 kB in 6min 13s (1194 B/s)
373.5 Reading package lists...
373.5 E: Failed to fetch http://deb.debian.org/debian/dists/bookworm/main/binary-amd64/Packages Connection failed [IP: 151.101.90.132 80]
373.5 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
failed to solve: process "/bin/sh -c apt-get update && apt-get upgrade" did not complete successfully: exit code: 100
In that video ,those errors do not come out.
Also, is the apt-get upgrade absolutely necessary?
I do not know. I just ran those codes.
There are no errors for the command “RUN apt-get update && apt-get upgrade”.
But there is a failure for the next step: " Install JDK and any needed utilities". The codes are “RUN apt-get install -y openjdk-17-jre-headless \unzip curl procps vim net-tools\python3 python3-pip python3.11-venv”.
There is only a glance of time to run the command"docker compose up" and finish the installation of all those softwares in the Part Time Larry tutorial video.
But in reality it took me at least half an hour but still failed to finish the [web 3/9] Run apt-get install -y etc .
Maybe the unstable Internet connection is one big reason for failure. Can we use the docker commands to run those codes? Just as you advised me to try to pull the image, I ran that command and saw that image in my docker hub.
I sent you 4 screenshot pictures one by one. The system did not allow me to send you 8 screenshot pictures together yesterday.It is my first time to know that rule.