构建脚本准备
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user