在執行 docker info
命令時遇到如下警告:
WARNING: Plugin "/Users/user/.docker/cli-plugins/docker-debug" is not valid: failed to fetch metadata: fork/exec /Users/user/.docker/cli-plugins/docker-debug: no such file or directory
WARNING: Plugin "/Users/user/.docker/cli-plugins/docker-dev" is not valid: failed to fetch metadata: fork/exec /Users/user/.docker/cli-plugins/docker-dev: no such file or directory
WARNING: Plugin "/Users/user/.docker/cli-plugins/docker-extension" is not valid: failed to fetch metadata: fork/exec /Users/user/.docker/cli-plugins/docker-extension: no such file or directory
WARNING: Plugin "/Users/user/.docker/cli-plugins/docker-feedback" is not valid: failed to fetch metadata: fork/exec /Users/user/.docker/cli-plugins/docker-feedback: no such file or directory
WARNING: Plugin "/Users/user/.docker/cli-plugins/docker-init" is not valid: failed to fetch metadata: fork/exec /Users/user/.docker/cli-plugins/docker-init: no such file or directory
WARNING: Plugin "/Users/user/.docker/cli-plugins/docker-sbom" is not valid: failed to fetch metadata: fork/exec /Users/user/.docker/cli-plugins/docker-sbom: no such file or directory
WARNING: Plugin "/Users/user/.docker/cli-plugins/docker-scan" is not valid: failed to fetch metadata: fork/exec /Users/user/.docker/cli-plugins/docker-scan: no such file or directory
WARNING: Plugin "/Users/user/.docker/cli-plugins/docker-scout" is not valid: failed to fetch metadata: fork/exec /Users/user/.docker/cli-plugins/docker-scout: no such file or directory
對於我來說,是由於 Oh My Zsh 設定中啟用了 docker
外掛導致的。移除這個外掛就好了:
plugins=(... docker) # 移除 docker