构建脚本准备

This commit is contained in:
2026-02-14 21:59:16 +08:00
parent ff98ace086
commit 6d3a5d4cd4

View File

@@ -1,11 +1,15 @@
#!/bin/bash
export IP=172.22.178.77
sudo apt update
sudo apt install -y npm git
curl -fsSL https://raw.githubusercontent.com/docker/docker-install/master/install.sh | sh
sudo usermod -aG docker $USER
docker buildx create --use --name multiarch-builder
docker buildx create --use --name multiarch-builder --driver-opt "env.HOST_ALIASES=registry.yqxpro.com:${IP}"
echo "$IP registry.yqxpro.com" | sudo tee -a /etc/hosts
tar xvzf certs.tgz
docker run -d \
--restart=always \
--name registry \