文章参考:Hyperledger Fabric2.5环境搭建(Windows系统下的WSL)
2.4 安装go(细节补充)
vi ~/.bashrc
按“i”开始insert模式
在最后输入以下内容:
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
写入完成后,按[Esc]
切换到命令模式,并输入 Shift + Z Z
保存并退出文件
———————————————————————————————————————————
最终测试
docker run hello-world
一般来说,正常情况下docker desktop可以看到它, 但出现以下问题:
Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Head "https://registry-1.docker.io/v2/library/hello-world/manifests/latest": dialing registry-1.docker.io:443 container via direct connection because has no HTTPS