构建脚本准备
This commit is contained in:
@@ -1,13 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export IP=172.22.178.77
|
|
||||||
|
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y npm git
|
sudo apt install -y npm git
|
||||||
curl -fsSL https://raw.githubusercontent.com/docker/docker-install/master/install.sh | sh
|
curl -fsSL https://raw.githubusercontent.com/docker/docker-install/master/install.sh | sh
|
||||||
sudo usermod -aG docker $USER
|
sudo usermod -aG docker $USER
|
||||||
docker buildx create --use --name multiarch-builder --driver-opt "env.HOST_ALIASES=registry.yqxpro.com:${IP}"
|
docker buildx create --use --bootstrap --name multiarch-builder --driver-opt network=host
|
||||||
echo "$IP registry.yqxpro.com" | sudo tee -a /etc/hosts
|
echo "127.0.0.1 registry.yqxpro.com" | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
tar xvzf certs.tgz
|
tar xvzf certs.tgz
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
|||||||
Reference in New Issue
Block a user