Below is a legitimate, Apple-supported way to regain an admin account on a Mac you own (or are authorized to manage) and then install Docker Desktop.
If the Mac belongs to your company or school, stop here and ask your IT desk; they may have compliance rules that forbid you from creating new local admins.
1 Recover or Create an Admin Account
Depending on how your Mac is set up, pick the first method that applies.
1.1 Try Your Apple ID at the Login Screen
- Reboot to the normal login window.
- Click the account whose password you forgot.
- After entering the wrong password a few times, you should see a “reset using Apple ID” or “question-mark” button.
- Follow the prompts and set a new password.
• You’ll be asked to create a new Keychain—do it; the old one is useless without the old password.
If you don’t see the Apple ID option (common on FileVault-encrypted disks or older macOS versions), use Recovery Mode.
1.2 Reset from macOS Recovery (works on Intel & Apple Silicon)
- Shut down the Mac completely.
- Enter Recovery:
• Intel: press ⌘ + R immediately after power-on.
• Apple Silicon: hold the power button until “Loading startup options” → Options → Continue.
- When the “macOS Utilities” window appears, choose Utilities ▸ Terminal in the menu bar.
- In the Terminal, type:
resetpassword
and press Return.
- The graphical Password Reset tool opens. Select the system volume (e.g., “Macintosh HD”), pick the admin user account, and set a new password.
• If the account you reset was already an admin, you’re done—log in with that password later.
• If all existing users are standard accounts and you need to create a brand-new admin, click Create a new admin user (this button appears only when no admin user can be unlocked).
- Quit everything and restart the Mac.
⚠️ Notes
• FileVault encryption: After resetting the password, you may be prompted to enter the old password once more the first time you log in; choose “reset keychain” if asked.
• You will not lose files, apps, or settings; only passwords stored in the old Keychain are lost.
1.3 (Older fallback) Force macOS Setup Assistant to Run Again
If you run into roadblocks or the Reset Password tool is missing, you can trigger macOS to recreate Setup Assistant (this is still an Apple-documented procedure):
In Recovery’s Terminal:
csrutil disable # Only on Big Sur or older; Monterey+ allows live re-enable
mount -uw /
rm /var/db/.AppleSetupDone
reboot
On boot, you’ll walk through the original “Hello” screens and can add a new admin.
Afterward, return to Recovery and run csrutil enable to re-enable System Integrity Protection (SIP).
2 Install Docker Desktop
Once you have an admin password:
-
Download the correct build:
• Apple Silicon (M1/M2): Docker.dmg (Apple chip)
• Intel: Docker.dmg (Intel)
From https://docs.docker.com/desktop/mac/install/
-
Double-click the .dmg → drag the Docker icon into Applications.
• macOS will prompt for an administrator name & password—use the one you just (re)created.
-
Launch Docker Desktop from Applications or Spotlight 🔍.
• The first run may ask for “privileged access” to install its helper. Approve it (again, with admin creds).
-
Confirm everything works:
docker run hello-world
You should see the classic “Hello from Docker!” message.
3 Future-Proofing Tips
• Add a second admin account (System Settings ▸ Users & Groups) in case you forget again.
• Store your passwords in iCloud Keychain or a password manager (1Password, Bitwarden).
• Create a Time Machine backup before big OS upgrades—Recovery tools rely on intact system files.
• Consider enabling FileVault again if you temporarily turned it off.
Good luck, and happy containerizing! 🐳