Open LinuxSuRen opened 6 months ago
Actual behavior I tried to give ARG an empty value, but it's failed. The ARG still uses the default value. See below Dockerfile
ARG
ARG REGISTRY=172.11.0.6:30002/ FROM ${REGISTRY}docker.io/library/golang:1.20 as builder
when I run the following command,
docker run -v .:/data gcr.io/kaniko-project/executor:latest \ --no-push --dockerfile=/data/Dockerfile --build-arg REGISTRY=''
it still pulls image from 172.11.0.6:30002/docker.io/library/golang:1.20
172.11.0.6:30002/docker.io/library/golang:1.20
Expected behavior It can pull image from docker.io/library/golang:1.20
docker.io/library/golang:1.20
To Reproduce See above.
Additional Information
Kaniko Image (fully qualified with digest)
Triage Notes for the Maintainers
--cache
Actual behavior I tried to give
ARG
an empty value, but it's failed. The ARG still uses the default value. See below Dockerfilewhen I run the following command,
docker run -v .:/data gcr.io/kaniko-project/executor:latest \ --no-push --dockerfile=/data/Dockerfile --build-arg REGISTRY=''
it still pulls image from
172.11.0.6:30002/docker.io/library/golang:1.20
Expected behavior It can pull image from
docker.io/library/golang:1.20
To Reproduce See above.
Additional Information
Kaniko Image (fully qualified with digest)
Triage Notes for the Maintainers
--cache
flag