fix
This commit is contained in:
@@ -271,16 +271,18 @@ function at-repos-build-docker-atproto() {
|
||||
}
|
||||
|
||||
function at-repos-push-reset() {
|
||||
if [ -n "$(docker ps -q -f name=registry)" ]; then
|
||||
echo "Registry is already running."
|
||||
docker restart registry
|
||||
docker stop registry
|
||||
docker rm registry
|
||||
docker volume rm registry-data 2>/dev/null || true
|
||||
fi
|
||||
docker run -d -p ${dport}:${dport} --name registry \
|
||||
--restart=always \
|
||||
-v registry-data:/var/lib/registry \
|
||||
registry:2
|
||||
sleep 3
|
||||
docker run -d -p ${dport}:${dport} --name registry --restart=always registry:2
|
||||
fi
|
||||
}
|
||||
|
||||
function at-repos-push-docker() {
|
||||
@@ -309,7 +311,9 @@ case "`cat /etc/hostname`" in
|
||||
exit
|
||||
;;
|
||||
*)
|
||||
if [ $1 = "r" ];then
|
||||
at-repos-push-reset
|
||||
fi
|
||||
at-repos-clone
|
||||
at-repos-pull
|
||||
at-repos-social-app-icon
|
||||
|
||||
Reference in New Issue
Block a user