podman build
with --build-arg-file
behaves differently from source
or ContainerFile
#5945
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Issue Description
I don't know if this is a bug or not, but I think this does not make sense:
source
needs thekey=value
entries in the file to have quotes if there is a space in the value.podman build --build-arg-file
needs thekey=value
entries in the file to haveno
quotes either there is spaces in the value or not.I read Containerfile reference and podman build reference but gained little about this.
My Containerfile:
My argfile.conf:
Now I build:
And than I use
source
:Why
RUN echo "${STRING}"
outputs"123 123"
that has quotes?I simply tried:
Seems the
ARG STRING
is actually\"123 123\"
, is this a bug? Or why is it designed like this?Best regards!
Steps to reproduce the issue
Steps to reproduce the issue
1.
Containerfile:
argfile.conf:
Describe the results you received
The
ARG STRING
is actually\"123 123\"
. While theARG STRING1
is actually what I need forpodman build
but it can't be load bysource
.Describe the results you expected
I expect
podman build --build-arg-file
to ignore quotes.podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
No
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: