Docker/For Mac/How to Install into Zsh
Properties
- tags
- Diataxis/How To, zsh
How do I get Docker to show up in the Zsh shell after Docker for Mac is installed / updated?
- Feb 2nd, 2025
Summary
- The easiest way to solve this is to go to Docker/For Mac/Settings/Advanced
- Then select System, which adds /usr/local/bin Docker/CLI tools to Shell/PATH
- note that while this is working for me right now, this stackoverflow user claimed that after a subsequent docker update, the permissions weren't retained, so they ended up creating a zsh/.zshrc entry for Docker
- Feb 1st, 2025
- zsh didn't find it
docker --version zsh: command not found: dockermacos - Docker command not found when running on Mac - Stack Overflow
- top answer
- comment 1
- When should I use zsh/.zprofile vs zsh #Q
Docker/Forum Docker:command not found after installing Docker desktop on Mac - Docker Desktop - Docker Community Forums OP 2020/05
- comment from 2023/04
Interesting, looks like somehow the settings now install docker as USER instead of SYSTEM so the executables are not included in your PATH by default. I recently moved between Macs and was caught offguard by this change.

- (original image)
- A few comments from later, even the last six months; most users flip to system
- one comment from 2025/01
- comment from 2023/04
- Docker/Docs/Desktop/Setup/Install/Mac Permission Requirements
- Understand permission requirements for Docker Desktop on Mac | Docker Docs
- With version 4.18 and later, you can choose whether to install symlinks either in
/usr/local/binor$HOME/.docker/binduring installation of Docker Desktop. - If
/usr/local/binis chosen, and this location is not writable by unprivileged users, Docker Desktop requires authorization to confirm this choice before the symlinks to Docker binaries are created in/usr/local/bin. If$HOME/.docker/binis chosen, authorization is not required, but then you must manually add$HOME/.docker/binto their PATH.
- With version 4.18 and later, you can choose whether to install symlinks either in
- Understand permission requirements for Docker Desktop on Mac | Docker Docs
- zsh didn't find it