1、下载安装最可靠
brew install不建议用,如果用brew install 正常,那就不用看后面的
2、现象
docker.errors.DockerException: Error while fetching server API version: (‘Connection aborted.‘, File
原因:就是docker 没安装好
mac os 版本:mac os Catalina 10.15
到这个网站Docker Desktop release notes | Docker Documentation
下载 4.0.0版本,最新的版本需要升级mac os 11
下载完成后,安装即可。
3、测试
docker pull hello-world #复制,不要自己敲,可能敲错,helloworld
docker run hello-world