Skip to content

Docker 使用记录

构建多平台镜像

sh
docker buildx build --file ./node-20-build/Dockerfile --push --platform=linux/amd64,linux/arm64 -t isfk/node-build:20 .
docker buildx build --file ./rust-1.7-build/Dockerfile --push --platform=linux/amd64,linux/arm64 -t isfk/rust-build:1.7 .

使用腾讯镜像加速

vim /etc/docker/daemon.json

json
{
  "registry-mirrors": ["https://mirror.ccs.tencentyun.com"]
}
bash
sudo systemctl daemon-reload
sudo systemctl restart docker