Repair Docker after removing Docker Desktop
Get docker pull, docker compose and docker buildx working again after you remove Docker Desktop from a Mac or a Windows PC.
Get docker pull, docker compose and docker buildx working again after you remove Docker
Desktop from a Mac or a Windows PC. Removing Docker Desktop can leave two Docker settings
pointing into the application you deleted, and both stop docker before it reaches any
runtime.
Prerequisites
- Ringleader installed on a Mac or a Windows PC.
- One of these symptoms after you removed Docker Desktop:
- Every
docker pullfails with an error likeerror getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH. Your Docker configuration still names Docker Desktop’s sign-in helper, and the helper went with the application. - Docker can’t find
docker composeordocker buildx, because the plugin folder they were installed to is gone.
- Every
Repair Docker’s settings
If you create the local container runtime
after removing Docker Desktop, rl local-runtime create runs this repair for you. To run only
the repair, follow these steps:
Run:
rl local-runtime repair-dockerThe command changes a setting only when it is clearly broken, and saves the old configuration as
config.json.pre-ringleaderbeside it. It does nothing when nothing is broken.Check that Docker finds its plugins.
docker compose versionanddocker buildx versioneach print a version. With a Docker runtime running, such as the local runtime,docker pullno longer fails witherror getting credentials.Optional: if Docker no longer has a sign-in you had, run
docker loginfor that registry again. Sign-ins that Docker Desktop’s helper saved may need a newdocker login.
In the application, the same problem shows as Docker needs a repair. Click Fix to run
the repair. rl local-runtime repair-docker
says what the repair changes.
Undo the repair
Removing Ringleader removes its sign-in helper and leaves your Docker configuration alone. A
configuration the repair changed then still names ringleader, and every docker pull fails
with the same error. To undo the change, do one of these:
- Put the saved file back as
config.json:~/.docker/config.json.pre-ringleaderon a Mac, or%USERPROFILE%\.docker\config.json.pre-ringleaderon Windows. That brings back the configuration as it was when the backup was first saved. - Change
credsStoreinconfig.jsonto a helper that is installed, then rundocker loginagain.
Troubleshoot
- If you created the local runtime and
rl local-runtime statusprints aRepair:line, a Docker setting is still broken. The line names the setting and ends in(fix: rl local-runtime repair-docker). Run that command. - If status says
Runtime: not created, it can’t check Docker. Runrl local-runtime repair-dockeragain.
Next steps
- Run containers with the local container runtime runs containers on your computer in place of Docker Desktop.
- Local runtime lists every form of the
rl local-runtimecommand. - Uninstall Ringleader removes Ringleader and says what it leaves in your Docker configuration.