<!-- Please, check https://docs.docker.com/docker-for-windows/troubleshoot/. Issues without logs and details cannot be debugged, and will be closed.
Issues unrelated to Docker Desktop will be closed. In particular, see
<!-- Click these checkboxes after submitting. --> <!-- Download Docker Desktop 'Edge' (latest build) here: https://hub.docker.com/editions/community/docker-ce-desktop-windows -->
No issues with zsh completions and compinit when starting a new shell
I installed Docker for Windows 188.8.131.52 on Windows 10 Version 2004 (build 19041.450) and enabled WSL integration. Then I turned off Docker for Windows because of resource consumptions. Now I get this error every time I start my zsh shell:
compinit:501: no such file or directory: /usr/share/zsh/vendor-completions/_docker
I noticed that the file
/usr/share/zsh/vendor-completions/_docker is a link to a wsl mount:
$ ls -l /usr/share/zsh/vendor-completions/_docker lrwxrwxrwx 1 root root 74 Sep 3 11:17 /usr/share/zsh/vendor-completions/_docker -> /mnt/wsl/docker-desktop/cli-tools/usr/share/zsh/vendor-completions/_docker
so I assume this file is present only when Docker for Windows is running, but I need to turn it off or my machine won't make it.
~/.zshrc file is:
plugins=(git docker zsh-completions) source $ZSH/oh-my-zsh.sh # zsh-completions autoload -U compinit && compinit
<!-- Please, help us understand the problem. For instance:
<!-- A reproducible case, Dockerfiles with reproduction inside is best. -->
@simonferquel Have you seen this before?