Repository does not exist or may require 'docker login': denied: requested access to the resource is denied

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.

The error shows as followings:

What prerequisites do I need to do if the codes are right?

Thanks

Seems to still be the same problem as your previous post?

Have you tried pulling through a mirror? Though you claim to be using a VPN, so I do wonder what this could be

Glad and suprised to receive your quick reply .

Yea. I need more help.

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.

docker login–Login Succeeded
docker pull debian:bookworm-slim

Now I can see it in Local Images on docker desktop now.

I run the command “docker-compose up” again.
we moved forward a bit although still failed.

failed to solve: process “/bin/sh -c apt-get update && apt-get upgrade” did not complete successfully: exit code: 100

I really really appreciate your help!

Well at least that

Could you separate the update/upgrade commands into two layers so we know where it crashes? Also, is the apt-get upgrade absolutely necessary?

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.

You have a step:

RUN apt-get update && apt-get upgrade

Try changing it to:

RUN apt-get update
RUN apt-get upgrade

Just to see at which of those commands the build crashes.
If it crashes on the upgrade step, try to build without it

OK. I understand what you mean now.
I think that I need to change that codes in Visual code.

My VPN does not work now. I have no choice but to be offline.

Thanks very much today.

Hi deanayalon

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.

Looking forward to your reply

Sincerely

Dean Ayalon via Docker Community Forums <notifications@docker.discoursemail.com> 于2024年10月19日周六 20:46写道:

Well at least step 2 works now, what have you changed?

As for the next command, what’s the error you’re getting?

Would you mind pasting your Dockerfile?

Hi deanayalon

Did you receive my email yesterday?

attached with 8 screenshot pictures.

It seems that is not allowed

ps:

Reason:

Sorry, new users can only put one embedded media item in a post.

If you can correct the problem, please try again.

Dean Ayalon via Docker Community Forums <notifications@docker.discoursemail.com> 于2024年10月21日周一 17:10写道:

Hi deanayalon

Of course, now I know how to screenshot those logs to you.

It automatically breaks down the first time .

And I tried it again. No progress after about 11minutes.

Can we manually run some commands to install the openjdk-17-jre-headless directly? Or how to solve it?

Looking forward to your reply

Sincerely

Dean Ayalon via Docker Community Forums <notifications@docker.discoursemail.com> 于2024年10月21日周一 17:10写道:

(attachments)

Dean Ayalon via Docker Community Forums <notifications@docker.discoursemail.com> 于2024年10月21日周一 17:10写道:

(attachments)

screen shot 2

Dean Ayalon via Docker Community Forums <notifications@docker.discoursemail.com> 于2024年10月21日周一 17:10写道:

(attachments)

Dean Ayalon via Docker Community Forums <notifications@docker.discoursemail.com> 于2024年10月21日周一 17:10写道:

(attachments)

Hi Deanayalon

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.

Are those 4 screenshot pictures enough for you?

Looking forward to your reply

Sincerely

Dean Ayalon via Docker Community Forums <notifications@docker.discoursemail.com> 于2024年10月21日周一 17:10写道:

(attachments)

Screen shot 2 is the only useful one, and still we don’t have enough info to understand what package within this installation step crashes

Try splitting the RUN command into multiple steps and pinpoint the problematic package

Also, no, I did not get any email from you

"Try splitting the RUN command into multiple steps "

How to do it? Or what command should I run in Git Bash to do it??

Dean Ayalon via Docker Community Forums <notifications@docker.discoursemail.com> 于2024年10月23日周三 15:11写道:

Dean Ayalon via Docker Community Forums <notifications@docker.discoursemail.com> 于2024年10月23日周三 15:11写道:

Hi deanayalon

In Docker file, there are some codes to install JDK and any needed utilities. The codes are as followings:

RUN apt-get install -y openjdk-17-jre-headless \

unzip curl procps vim net-tools \

python3 python3-pip python3.11-venv

But it takes much time but still fails due to some reasons, can you convert them to some codes that we can run manually in Git please ?

Dean Ayalon via Docker Community Forums <notifications@docker.discoursemail.com> 于2024年10月23日周三 15:11写道: