fix: allow docker_push by non-root user

This commit is contained in:
Qiu Jian
2019-10-14 18:41:45 +08:00
parent 905fb307a8
commit 7bd5a1d22b
+2 -2
View File
@@ -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=$@