-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
3
-
False
-
-
False
-
rhel-container-tools
-
-
-
RUN 268
[2946735840] Upstream Reporter: Praveen Kumar
Upstream issue status: Closed
Upstream description:
Issue Description
I am trying to build following containerfile where the git branch is not correct so instead of failing it just run.
FROM alpine RUN apk add git ADD https://github.com/openshift/microshift.git#non-exist-branch /microshift RUN ls -a /microshiftwith docker build it point out that this non-exist-branch doesn't exist and abort the build but not in case of podman.
Steps to reproduce the issue
Steps to reproduce the issue
- Use the container file which is mentioned early
- use podman build on that container file
Describe the results you received
non-exist-branch is just ignored instead error out.
Describe the results you expected
It should point out it is non exist branch and error out.
podman info output
host: arch: amd64 buildahVersion: 1.39.2 cgroupControllers: - cpu - io - memory - pids cgroupManager: systemd cgroupVersion: v2 conmon: package: conmon-2.1.13-1.fc41.x86_64 path: /usr/bin/conmon version: 'conmon version 2.1.13, commit: ' cpuUtilization: idlePercent: 96.54 systemPercent: 0.9 userPercent: 2.56 cpus: 16 databaseBackend: sqlite distribution: distribution: fedora variant: workstation version: "41" eventLogger: journald freeLocks: 2042 hostname: 192.168.1.17 idMappings: gidmap: - container_id: 0 host_id: 1000 size: 1 - container_id: 1 host_id: 100000 size: 75536 - container_id: 75537 host_id: 524288 size: 65536 uidmap: - container_id: 0 host_id: 1000 size: 1 - container_id: 1 host_id: 100000 size: 75536 - container_id: 75537 host_id: 524288 size: 65536 kernel: 6.13.7-200.fc41.x86_64 linkmode: dynamic logDriver: journald memFree: 8220712960 memTotal: 65965862912 networkBackend: netavark networkBackendInfo: backend: netavark dns: package: aardvark-dns-1.14.0-1.fc41.x86_64 path: /usr/libexec/podman/aardvark-dns version: aardvark-dns 1.14.0 package: netavark-1.14.0-1.fc41.x86_64 path: /usr/libexec/podman/netavark version: netavark 1.14.0 ociRuntime: name: crun package: crun-1.20-2.fc41.x86_64 path: /usr/bin/crun version: |- crun version 1.20 commit: 9c9a76ac11994701dd666c4f0b869ceffb599a66 rundir: /run/user/1000/crun spec: 1.0.0 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL os: linux pasta: executable: /usr/bin/pasta package: passt-0^20250217.ga1e48a0-2.fc41.x86_64 version: "" remoteSocket: exists: true path: /run/user/1000/podman/podman.sock rootlessNetworkCmd: pasta security: apparmorEnabled: false capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT rootless: true seccompEnabled: true seccompProfilePath: /usr/share/containers/seccomp.json selinuxEnabled: true serviceIsRemote: false slirp4netns: executable: "" package: "" version: "" swapFree: 8587833344 swapTotal: 8589930496 uptime: 126h 20m 20.00s (Approximately 5.25 days) variant: "" plugins: authorization: null log: - k8s-file - none - passthrough - journald network: - bridge - macvlan - ipvlan volume: - local registries: search: - registry.fedoraproject.org - registry.access.redhat.com - docker.io store: configFile: /home/prkumar/.config/containers/storage.conf containerStore: number: 2 paused: 0 running: 0 stopped: 2 graphDriverName: overlay graphOptions: {} graphRoot: /home/prkumar/.local/share/containers/storage graphRootAllocated: 1022488477696 graphRootUsed: 282273460224 graphStatus: Backing Filesystem: btrfs Native Overlay Diff: "true" Supports d_type: "true" Supports shifting: "false" Supports volatile: "true" Using metacopy: "false" imageCopyTmpDir: /var/tmp imageStore: number: 25 runRoot: /run/user/1000/containers transientStore: false volumePath: /home/prkumar/.local/share/containers/storage/volumes version: APIVersion: 5.4.1 BuildOrigin: Fedora Project Built: 1741651200 BuiltTime: Tue Mar 11 05:30:00 2025 GitCommit: b79bc8afe796cba51dd906270a7e1056ccdfcf9e GoVersion: go1.23.7 Os: linux OsArch: linux/amd64 Version: 5.4.1Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
Upstream URL: https://github.com/containers/podman/issues/25679
- links to