Open Topppy opened 6 months ago
前置信息:
所以m1的mac上build出来image在linux上用不了。 那么如何构建linux支持的platform的image呢? 使用参数 --platform 来指定platform linux/amd64
--platform
linux/amd64
docker build -t IMAGE:TAG --platform linux/amd64 .
打完的image在docker的GUI中查看会有一个特殊的标志
附gitlabCI报错信息:
ERROR: Job failed (system failure): unable to upgrade connection: container not found ("build")
前置信息:
所以m1的mac上build出来image在linux上用不了。 那么如何构建linux支持的platform的image呢? 使用参数
--platform
来指定platformlinux/amd64
打完的image在docker的GUI中查看会有一个特殊的标志![image](https://github.com/Topppy/hexo-blog/assets/9689442/c9b39e91-ade3-48c5-a41c-c2b384338889)
附gitlabCI报错信息: