1、golang错误

go: golang.org/x/crypto@v0.0.0-20200622213623-75b288015ac9: unrecognized import path "golang.org/x/crypto" (https fetch: Get https://golang.org/x/crypto?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
export GOPROXY=https://goproxy.cn
export GO111MODULE=on

然后切换到root用户下,不要使用sudo make build  

2、ZeroMQ错误  

先编译ZeroMq

https://blog.csdn.net/tjcwt2011/article/details/81670710

然后找到ZeroMq路径

export PKG_CONFIG_PATH=/home/ygy/zmq/lib/pkgconfig

3、容器内无法访问外网

一直以为是dns问题,后来发现将服务目录下的DockerFile中的alpine3.14换成3.12就不会报这个问题。原因不明

EdgeX armhf编译问题

 4、容器内使用加速示例

ENV GOPROXY=https://goproxy.cn

相关文章:

  • 2021-06-25
  • 2021-10-04
  • 2021-11-11
  • 2021-10-19
  • 2021-09-08
  • 2021-10-18
  • 2021-07-11
  • 2021-05-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-04-04
  • 2021-03-31
  • 2021-10-07
  • 2021-06-28
相关资源
相似解决方案