mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
fix: allow docker_push by non-root user
This commit is contained in:
@@ -21,12 +21,12 @@ build_image() {
|
||||
local tag=$1
|
||||
local file=$2
|
||||
local path=$3
|
||||
docker build -t "$tag" -f "$2" "$3"
|
||||
sudo docker build -t "$tag" -f "$2" "$3"
|
||||
}
|
||||
|
||||
push_image() {
|
||||
local tag=$1
|
||||
docker push "$tag"
|
||||
sudo docker push "$tag"
|
||||
}
|
||||
|
||||
COMPONENTS=$@
|
||||
|
||||
Reference in New Issue
Block a user