Ubuntu Version: amd64/x86_64 24.04 LTS w/ TPM FDE
Desktop Environment (if applicable): GNOME
Problem Description: podman build
is failing when using HereDoc syntax within a Dockerfile/Containerfile. HereDoc support was added in Podman 4.8(changelog), so it should be present in Podman 4.9.3. HereDoc provides multiline commands making Containerfiles much easier to read and maintain.
Relevant System Information:
AMD Ryzen 7700X DDR5 4800
Screenshots or Error Messages:
Working ./Containerfile
FROM registry.fedoraproject.org/fedora-minimal:41
RUN dnf --setopt install_weak_deps=false --assumeyes install fish; dnf --setopt install_weak_deps=false install btop;
CMD ["/sbin/init"]
STOPSIGNAL SIGRTMIN+3
Failing Containerfile
#./Containerfile contents
FROM registry.fedoraproject.org/fedora-minimal:41
RUN << EOF
dnf --setopt install_weak_deps=false --assumeyes install fish
dnf --setopt install_weak_deps=false --assumeyes install btop
EOF
CMD ["/sbin/init"]
STOPSIGNAL SIGRTMIN+3
Normal log podman build -t fedora-init:41 .
./Containerfile contents
podman build -t fedora-init:41 .
STEP 1/7: FROM registry.fedoraproject.org/fedora-minimal:41
STEP 2/7: RUN << EOF
--> Using cache f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f
--> f4735667e118
STEP 3/7: dnf --setopt install_weak_deps=false --assumeyes install fish
ERRO[0000] +(UNHANDLED LOGLEVEL) &imagebuilder.Step{Env:[]string{"container=oci", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, Command:"dnf", Args:[]string{""}, Flags:[]string{"--setopt"}, Attrs:map[string]bool(nil), Message:"DNF --setopt ", Original:"dnf --setopt install_weak_deps=false --assumeyes install fish"}
Error: building at STEP "DNF --setopt ": Build error: Unknown instruction: "DNF" &imagebuilder.Step{Env:[]string{"container=oci", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, Command:"dnf", Args:[]string{""}, Flags:[]string{"--setopt"}, Attrs:map[string]bool(nil), Message:"DNF --setopt ", Original:"dnf --setopt install_weak_deps=false --assumeyes install fish"}
Debug Log podman --log-level debug build -t fedora-init:41 .
INFO[0000] podman filtering at log level debug
DEBU[0000] Called build.PersistentPreRunE(podman --log-level debug build -t fedora-init:41 .)
DEBU[0000] Using conmon: "/usr/bin/conmon"
INFO[0000] Using sqlite as database backend
DEBU[0000] Using graph driver overlay
DEBU[0000] Using graph root /home/kenryo/.local/share/containers/storage
DEBU[0000] Using run root /run/user/1000/containers
DEBU[0000] Using static dir /home/kenryo/.local/share/containers/storage/libpod
DEBU[0000] Using tmp dir /run/user/1000/libpod/tmp
DEBU[0000] Using volume path /home/kenryo/.local/share/containers/storage/volumes
DEBU[0000] Using transient store: false
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that metacopy is not being used
DEBU[0000] Cached value indicated that native-diff is usable
DEBU[0000] backingFs=extfs, projectQuotaSupported=false, useNativeDiff=true, usingMetacopy=false
DEBU[0000] Initializing event backend journald
DEBU[0000] Configured OCI runtime runc initialization failed: no valid executable found for OCI runtime runc: invalid argument
DEBU[0000] Configured OCI runtime runj initialization failed: no valid executable found for OCI runtime runj: invalid argument
DEBU[0000] Configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument
DEBU[0000] Configured OCI runtime youki initialization failed: no valid executable found for OCI runtime youki: invalid argument
DEBU[0000] Configured OCI runtime krun initialization failed: no valid executable found for OCI runtime krun: invalid argument
DEBU[0000] Configured OCI runtime ocijail initialization failed: no valid executable found for OCI runtime ocijail: invalid argument
DEBU[0000] Configured OCI runtime crun-wasm initialization failed: no valid executable found for OCI runtime crun-wasm: invalid argument
DEBU[0000] Configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument
DEBU[0000] Using OCI runtime "/usr/bin/crun"
INFO[0000] Setting parallel job count to 49
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux [] }
DEBU[0000] base for stage 0: "registry.fedoraproject.org/fedora-minimal:41"
DEBU[0000] FROM "registry.fedoraproject.org/fedora-minimal:41"
STEP 1/7: FROM registry.fedoraproject.org/fedora-minimal:41
DEBU[0000] Pulling image registry.fedoraproject.org/fedora-minimal:41 (policy: missing)
DEBU[0000] Looking up image "registry.fedoraproject.org/fedora-minimal:41" in local containers storage
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux [] }
DEBU[0000] Trying "registry.fedoraproject.org/fedora-minimal:41" ...
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@f764ca660102bf0f2a6a3afe9b45d7d3f0c8c24934cd88dd95a9e9328542fdfb"
DEBU[0000] Found image "registry.fedoraproject.org/fedora-minimal:41" as "registry.fedoraproject.org/fedora-minimal:41" in local containers storage
DEBU[0000] Found image "registry.fedoraproject.org/fedora-minimal:41" as "registry.fedoraproject.org/fedora-minimal:41" in local containers storage ([overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@f764ca660102bf0f2a6a3afe9b45d7d3f0c8c24934cd88dd95a9e9328542fdfb)
DEBU[0000] exporting opaque data as blob "sha256:f764ca660102bf0f2a6a3afe9b45d7d3f0c8c24934cd88dd95a9e9328542fdfb"
DEBU[0000] Looking up image "registry.fedoraproject.org/fedora-minimal:41" in local containers storage
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux [] }
DEBU[0000] Trying "registry.fedoraproject.org/fedora-minimal:41" ...
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@f764ca660102bf0f2a6a3afe9b45d7d3f0c8c24934cd88dd95a9e9328542fdfb"
DEBU[0000] Found image "registry.fedoraproject.org/fedora-minimal:41" as "registry.fedoraproject.org/fedora-minimal:41" in local containers storage
DEBU[0000] Found image "registry.fedoraproject.org/fedora-minimal:41" as "registry.fedoraproject.org/fedora-minimal:41" in local containers storage ([overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@f764ca660102bf0f2a6a3afe9b45d7d3f0c8c24934cd88dd95a9e9328542fdfb)
DEBU[0000] exporting opaque data as blob "sha256:f764ca660102bf0f2a6a3afe9b45d7d3f0c8c24934cd88dd95a9e9328542fdfb"
DEBU[0000] Cached value indicated that idmapped mounts for overlay are not supported
DEBU[0000] Check for idmapped mounts support
DEBU[0000] exporting opaque data as blob "sha256:f764ca660102bf0f2a6a3afe9b45d7d3f0c8c24934cd88dd95a9e9328542fdfb"
DEBU[0000] exporting opaque data as blob "sha256:f764ca660102bf0f2a6a3afe9b45d7d3f0c8c24934cd88dd95a9e9328542fdfb"
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux [] }
DEBU[0000] Cached value indicated that volatile is being used
DEBU[0000] overlay: mount_data=lowerdir=/home/kenryo/.local/share/containers/storage/overlay/l/PZF6AQB5UA553V4WPJ2A36PWK7,upperdir=/home/kenryo/.local/share/containers/storage/overlay/dca1a5716ec4f76bb61e5093fd7477539e72b546f1db33066685d9ef1ccc8542/diff,workdir=/home/kenryo/.local/share/containers/storage/overlay/dca1a5716ec4f76bb61e5093fd7477539e72b546f1db33066685d9ef1ccc8542/work,userxattr,volatile
DEBU[0000] Container ID: db918a82e3fabde6af34ecf158b6de0e9580136cabf2695b03ecb1e9ee2ed8f3
DEBU[0000] Parsed Step: {Env:[container=oci PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] Command:run Args:[<< EOF] Flags:[] Attrs:map[] Message:RUN << EOF Original:RUN << EOF}
STEP 2/7: RUN << EOF
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@f764ca660102bf0f2a6a3afe9b45d7d3f0c8c24934cd88dd95a9e9328542fdfb"
DEBU[0000] exporting opaque data as blob "sha256:f764ca660102bf0f2a6a3afe9b45d7d3f0c8c24934cd88dd95a9e9328542fdfb"
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@86fb74daa2d27efbdec1329f0ec81fec1e4a269e14f5759d7e8ac466f5fc96b1"
DEBU[0000] exporting opaque data as blob "sha256:86fb74daa2d27efbdec1329f0ec81fec1e4a269e14f5759d7e8ac466f5fc96b1"
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@981eb3ae27a0e5b026d45f04b32a5351aac7a0e71a88dcb29f81d47fdee0ea93"
DEBU[0000] exporting opaque data as blob "sha256:981eb3ae27a0e5b026d45f04b32a5351aac7a0e71a88dcb29f81d47fdee0ea93"
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@efffeb51ceb7a6e6f9c3549ac7f6726ec4c8e879dc9cac83d591636e162105c2"
DEBU[0000] exporting opaque data as blob "sha256:efffeb51ceb7a6e6f9c3549ac7f6726ec4c8e879dc9cac83d591636e162105c2"
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@f033e49ad8a5309bf55a4b5cb80d00e9ea8ee26a5d115596128fb75acac7c382"
DEBU[0000] exporting opaque data as blob "sha256:f033e49ad8a5309bf55a4b5cb80d00e9ea8ee26a5d115596128fb75acac7c382"
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@27228f0c0becbf98cfe8303754059e74515e46708a6886041dace4fbf38e7b17"
DEBU[0000] exporting opaque data as blob "sha256:27228f0c0becbf98cfe8303754059e74515e46708a6886041dace4fbf38e7b17"
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@ad655e36a31430b664c11e60b68d1f119628403e56a517b5d78bf270a8e38ac2"
DEBU[0000] exporting opaque data as blob "sha256:ad655e36a31430b664c11e60b68d1f119628403e56a517b5d78bf270a8e38ac2"
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@45aae5155872923227cbad2443c67948985e29f51e7a089893b25317687a24ef"
DEBU[0000] exporting opaque data as blob "sha256:45aae5155872923227cbad2443c67948985e29f51e7a089893b25317687a24ef"
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@790e784ff7699fc38c38a4aced4017f22243c4923d4c2befc9820775dd3ff255"
DEBU[0000] exporting opaque data as blob "sha256:790e784ff7699fc38c38a4aced4017f22243c4923d4c2befc9820775dd3ff255"
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f"
DEBU[0000] exporting opaque data as blob "sha256:f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f"
DEBU[0000] Found a cache hit in the first iteration with id f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f
--> Using cache f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f
--> f4735667e118
DEBU[0000] Pulling image f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f (policy: never)
DEBU[0000] Looking up image "f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f" in local containers storage
DEBU[0000] Trying "f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f" ...
DEBU[0000] parsed reference into "[overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f"
DEBU[0000] Found image "f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f" as "f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f" in local containers storage
DEBU[0000] Found image "f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f" as "f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f" in local containers storage ([overlay@/home/kenryo/.local/share/containers/storage+/run/user/1000/containers]@f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f)
DEBU[0000] exporting opaque data as blob "sha256:f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f"
DEBU[0000] exporting opaque data as blob "sha256:f4735667e1184c2bdcd7df40cb7a273d116beb1dcac324f1b8df8c5bc2525f8f"
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux [] }
DEBU[0000] overlay: mount_data=lowerdir=/home/kenryo/.local/share/containers/storage/overlay/l/KMHZJZLBJNXG2ONUV43X3MD4NF:/home/kenryo/.local/share/containers/storage/overlay/l/PZF6AQB5UA553V4WPJ2A36PWK7,upperdir=/home/kenryo/.local/share/containers/storage/overlay/af01f76b94d7bd1454d664537e890c19b83f794ee445d68f45da946f8a49fcc0/diff,workdir=/home/kenryo/.local/share/containers/storage/overlay/af01f76b94d7bd1454d664537e890c19b83f794ee445d68f45da946f8a49fcc0/work,userxattr,volatile
DEBU[0000] Container ID: f0bffefc2d0760d0331481826f879e79e76fd2aadb7a870161e5519a828aa35e
DEBU[0000] Parsed Step: {Env:[container=oci PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] Command:dnf Args:[] Flags:[--setopt] Attrs:map[] Message:DNF --setopt Original:dnf --setopt install_weak_deps=false --assumeyes install fish}
STEP 3/7: dnf --setopt install_weak_deps=false --assumeyes install fish
DEBU[0000] Build error: Unknown instruction: "DNF" &imagebuilder.Step{Env:[]string{"container=oci", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, Command:"dnf", Args:[]string{""}, Flags:[]string{"--setopt"}, Attrs:map[string]bool(nil), Message:"DNF --setopt ", Original:"dnf --setopt install_weak_deps=false --assumeyes install fish"}
DEBU[0000] Error building at step {Env:[container=oci PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] Command:dnf Args:[] Flags:[--setopt] Attrs:map[] Message:DNF --setopt Original:dnf --setopt install_weak_deps=false --assumeyes install fish}: Build error: Unknown instruction: "DNF" &imagebuilder.Step{Env:[]string{"container=oci", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, Command:"dnf", Args:[]string{""}, Flags:[]string{"--setopt"}, Attrs:map[string]bool(nil), Message:"DNF --setopt ", Original:"dnf --setopt install_weak_deps=false --assumeyes install fish"}
Error: building at STEP "DNF --setopt ": Build error: Unknown instruction: "DNF" &imagebuilder.Step{Env:[]string{"container=oci", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, Command:"dnf", Args:[]string{""}, Flags:[]string{"--setopt"}, Attrs:map[string]bool(nil), Message:"DNF --setopt ", Original:"dnf --setopt install_weak_deps=false --assumeyes install fish"}
DEBU[0000] Shutting down engines