--- title: zsh command not found docker --- # zsh: command not found: docker ###### tags: `infrastructure` 這次mac重安裝遇到怪圈,安裝了docker以後也安裝了zsh, 執行docker相關命令卻報這個錯誤,是以往沒有遇過的,特別記錄一下。 1. 打開 ~/.zprofile 2. 增加以下內容 ``` # Add Docker Desktop for Mac (docker) export PATH="$PATH:/Applications/Docker.app/Contents/Resources/bin/" ``` 3. source ~/.zprofile 不確定為何安裝的docker指定沒有在相關指令路徑內,但先這樣做恢復正常了
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up