Fail to pull oracle standard DB image from container-registry.oracle.com

I have installed Docker in my Windows 11 home edition and tried to pull Oracle standard DB image from container-registry.oracle.com. However i got the following error.

docker login container-registry.oracle.com

Username (XXXX):

Password:

Error response from daemon: Get “https://container-registry.oracle.com/v2/”: dialing container-registry.oracle.com:443 no HTTPS proxy: resolving host container-registry.oracle.com: lookup container-registry.oracle.com: no such host.

Any idea on how to resolve this error.

PS : I’m using ubuntu 18.04 as WSL2. System has 8 gb ram, 512 gb SSD and has AMD ryzen 5 series as chip.

Have anyone any suggestions how to solve, or at least how to debug this problem?

Add below mention entry to your windows host file.

2600:1408:c400:188d::a15 container-registry.oracle.com

run following commands to restart daemon and docker service in WSL2 Linux

sudo systemctl daemon-reload

sudo systemctl restart docker

Now try.

After a while it got connected but again it got connected while pulling the image from Oracle registery stating the same reason

  1. Make sure you shut down Docker and any other instances of wsl2. You can do this by going to a command prompt and type the command wsl — shutdown.
  2. To create a .wslconfig file, simply open your File Explorer, and type and enter %UserProfile% to go to your profile directory in Windows.
  3. Docker or WSL2 by default does not create these config files so we should do it ourselves. Create a new file called .wslconfig (make sure there are no .txt at the end)

Settings apply across all Linux distros running on WSL 2

[wsl2]

Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB

memory=4GB

Sets the VM to use two virtual processors

processors=2

Specify a custom Linux kernel to use with your installed distros. The default kernel used can be found at GitHub - microsoft/WSL2-Linux-Kernel: The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)

kernel=C:\temp\myCustomKernel

Sets additional kernel parameters, in this case enabling older Linux base images such as Centos 6

kernelCommandLine = vsyscall=emulate

Sets amount of swap storage space to 8GB, default is 25% of available RAM

swap=8GB

Sets swapfile path location, default is %USERPROFILE%\AppData\Local\Temp\swap.vhdx

swapfile=C:\temp\wsl-swap.vhdx

Disable page reporting so WSL retains all allocated memory claimed from Windows and releases none back when free

pageReporting=false

Turn off default connection to bind WSL 2 localhost to Windows localhost

localhostforwarding=true

Disables nested virtualization

nestedVirtualization=false

Turns on output console showing contents of dmesg when opening a WSL 2 distro for debugging

debugConsole=true

start WLS2 and docker and check.