构建脚本准备
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
#!/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 --driver-opt "env.HOST_ALIASES=registry.yqxpro.com:${IP}"
|
||||
echo "$IP registry.yqxpro.com" | sudo tee -a /etc/hosts
|
||||
docker buildx create --use --bootstrap --name multiarch-builder --driver-opt network=host
|
||||
echo "127.0.0.1 registry.yqxpro.com" | sudo tee -a /etc/hosts
|
||||
|
||||
tar xvzf certs.tgz
|
||||
docker run -d \
|
||||
|
||||
Reference in New Issue
Block a user