Cannot pass empty value of --build-arg #3155
Labels
area/cli
bugs related to kaniko CLI
area/env-variable
differs-from-docker
kind/bug
Something isn't working
priority/p1
Basic need feature compatibility with docker build. we should be working on this next.
works-with-docker
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
Please provide either the Dockerfile you're trying to build or one that can reproduce this error.
Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: