1.前提要求
centos8.2(内核版本应高于4.8)配置好国内镜像源
docker 建议用官方提供的方法安装 (自带docker buildx,什么额外的东西都不用装)
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl start docker
官网安装教程: https://docs.docker.com/engine/install/centos/
注意docker必须大于19.03.2版本,否则某些情况下会无法正确拉取镜像。
https://github.com/timescale/timescaledb/issues/5414
2.arm64多平台编译支持
需要创建一个buildkit.toml文件进行配置,让私有仓库走http、增加国内镜像代理。
无下面需求的话可以不创建此文件,下面创建builder的时候也不用加–config=buildkit.toml
debug=true