Fixed Docker Buildkit deprecation and permission problem.
This commit is contained in:
@@ -49,7 +49,8 @@ build_docker_image() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
echo "Building Docker image..."
|
echo "Building Docker image..."
|
||||||
if docker build -t "$IMAGE_NAME" .; then
|
export DOCKER_BUILDKIT=1
|
||||||
|
if sudo docker build -t "$IMAGE_NAME" .; then
|
||||||
echo "Docker image built successfully."
|
echo "Docker image built successfully."
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
@@ -294,7 +295,7 @@ install() {
|
|||||||
update_config
|
update_config
|
||||||
|
|
||||||
print_header "Building the Docker Image..."
|
print_header "Building the Docker Image..."
|
||||||
|
|
||||||
if ! build_docker_image; then
|
if ! build_docker_image; then
|
||||||
print_header "Failed to build Docker image."
|
print_header "Failed to build Docker image."
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user