Checked with buildah-1.11.6-6.rhaos4.4.el8.x86_64, and it's fixed. @jnovy so can I move to verified or have to check the minimum verison? # cat Dockerfile FROM centos ENV foo=oo ADD ./f${foo} /tmp/foo # date > foo # cat foo Fri Apr 10 03:05:02 EDT 2020 # buildah bud -t expand_env:latest STEP 1: FROM centos Getting image source signatures Copying blob e6a50b627bcb done Copying config 0d53c857b2 done Writing manifest to image destination Storing signatures STEP 2: ENV foo=oo STEP 3: ADD ./f${foo} /tmp/foo STEP 4: COMMIT expand_env:latest Getting image source signatures Copying blob b05580fca2f9 skipped: already exists Copying blob 9bd54db6a6af done Copying config 961366e2ec done Writing manifest to image destination Storing signatures 961366e2ec4555104d33080d31c2c6bc32640e950c97f8ec55aa8daf624d5288 961366e2ec4555104d33080d31c2c6bc32640e950c97f8ec55aa8daf624d5288 # podman run localhost/expand_env:latest /bin/cat /tmp/foo Fri Apr 10 03:05:02 EDT 2020
Weiwei, I don't work for MorganStanley for a while now ;-) Please put this to VERIFIED, the minimal version which contains the fix is 1.11.6-5. Thanks.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0581