Docker login error "Not enough memory resources are available"

2.2k Views Asked by At

I'm using Windows 10 and Docker Desktop Engine 19.03.5.

I'm trying to create an AWS ECR repository and push an image.

aws ecr get-login --no-include-email  # successful
docker login -u AWS -p eyJwYXlsb2F... # failed

Error:

Error saving credentials: error storing credentials - err: exit status 1, out: error storing credentials - err: exit status 1, out:Not enough memory resources are available to process this command.`

Enough memory and disk space.

2

There are 2 best solutions below

4
user2047824 On

On Windows 10: it's related to the Windows Credential Manager getting filled up over time with "git" entries - run this command and the issue fixed.

for /f "tokens=1,2 delims= " %i in ('cmdkey /list ^| findstr git ^| findstr Target') do cmdkey /delete %j
0
iman On

As someone else also mentioned it's because Windows Credential Manager is getting filled up.

Fix On windows 11 (similar in Windows 10:

Navigate to Control Panel => Manage Windows Credentials => Select Windows Credentials tab

(or search for "Windows Credential Manager" in the Start menu.)

Create a backup by clicking "Backup Credentials" (optional) and Remove the credentials you don't need.

For me the "Adobe" app had created too many credentials and after deleting some I was able to login to ECR docker successfully.