CWWKF1390E Error

Hi Everyone:

I am using windows 11 Enterprise Edition and installed Docker Desktop.
The container that try to call “https://repo.maven.apache.org/maven2/”.
This url exists when I tried to do a docker build, it try to call the above url and it gives me following error: CWWKF1390E:
The “https://repo.maven.apache.org/maven2/” configure Maven Repository cannot be reached.
Verify that your computer has network access and firewalls are configured correctly, then try the action again.
If the connection still fails, the repository server might be temporarily unavailable.

Any help or hint would be greatly appreciated it!!

There must be a reason why the repository can not be reached during image build. Without context information it is hard to guess why it works during container runtime, but not while building the image.

Can you share the command used to create the container and the command to trigger the build. Furthermore, please share the content of the Dockerfile, and if a compose file was used, its content as well.