Skip to content

Instantly share code, notes, and snippets.

@butackle
Last active June 29, 2022 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save butackle/eae2ef7484b8e7d247dd36637abb0381 to your computer and use it in GitHub Desktop.
Save butackle/eae2ef7484b8e7d247dd36637abb0381 to your computer and use it in GitHub Desktop.
Docker Desktop on Macをアップデートしたら.zshrc実行時にエラーになるようになった

エラーメッセージ

compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_docker

原因

/Applications/Docker.app/Contents/Resources/etc/docker.zsh-completionが無くなってた

解決策

シンボリックリンクの貼り直し

rm /usr/local/share/zsh/site-functions/_docker

etc=/Applications/Docker.app/Contents/Resources/etc
ln -s $etc/_docker /usr/local/share/zsh/site-functions/_docker
@butackle
Copy link
Author

やったばっかりなので、もしかしたら今後にバグが出てくるかもしれないけど、とりあえずは動いてそう

@butackle
Copy link
Author

参考文献(ちょっと記載が古かったのかも)

https://docs.docker.com/desktop/mac/#zsh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment