podman: podman failing to honor PATH variable setting in image
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The elastic/filebeat:7.6.1 image sets the PATH environment variable. When running under Docker this works correct, but when running under Podman, the environment variable is not set as expected.
Steps to reproduce the issue:
echo 'echo $PATH' | podman run --rm -i --entrypoint bash elastic/filebeat:7.6.1
Describe the results you received:
The above test, with Podman, returns:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Describe the results you expected:
The same command, with Docker, includes the correct output:
$ echo 'echo $PATH' | docker run --rm -i --entrypoint bash elastic/filebeat:7.6.1
/usr/share/filebeat:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
Version: 1.8.3-dev
RemoteAPI Version: 1
Go Version: go1.13.6
Git Commit: c2f37afabbdeb7bb062f7c5211601c10f5e3f99f-dirty
Built: Fri Aug 3 20:00:00 2018
OS/Arch: linux/amd64
Output of podman info --debug:
debug:
compiler: gc
git commit: c2f37afabbdeb7bb062f7c5211601c10f5e3f99f-dirty
go version: go1.13.6
podman version: 1.8.3-dev
host:
BuildahVersion: 1.14.5
CgroupVersion: v2
Conmon:
package: podman-1.8.3-1585660943.git9c7410d3.fc31.x86_64
path: /usr/libexec/podman/conmon
version: 'conmon version 2.0.7, commit: c2f37afabbdeb7bb062f7c5211601c10f5e3f99f-dirty'
Distribution:
distribution: fedora
version: "31"
IDMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
MemFree: 806383616
MemTotal: 33574580224
OCIRuntime:
name: crun
package: crun-0.13-1.fc31.x86_64
path: /usr/bin/crun
version: |-
crun version 0.13
commit: e79e4de4ac16da0ce48777afb72c6241de870525
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
SwapFree: 16840126464
SwapTotal: 16890458112
arch: amd64
cpus: 8
eventlogger: journald
hostname: madhatter
kernel: 5.5.11-200.fc31.x86_64
os: linux
rootless: true
slirp4netns:
Executable: /usr/bin/slirp4netns
Package: slirp4netns-0.4.0-20.1.dev.gitbbd6f25.fc31.x86_64
Version: |-
slirp4netns version 0.4.0-beta.3+dev
commit: bbd6f25c70d5db2a1cd3bfb0416a8db99a75ed7e
uptime: 12h 42m 31.9s (Approximately 0.50 days)
registries:
search:
- docker.io
- registry.fedoraproject.org
- registry.access.redhat.com
- registry.centos.org
- quay.io
store:
ConfigFile: /home/lars/.config/containers/storage.conf
ContainerStore:
number: 12
GraphDriverName: overlay
GraphOptions:
overlay.mount_program:
Executable: /usr/bin/fuse-overlayfs
Package: fuse-overlayfs-0.7.8-1.fc31.x86_64
Version: |-
fusermount3 version: 3.6.2
fuse-overlayfs: version 0.7.8
FUSE library version 3.6.2
using FUSE kernel interface version 7.29
GraphRoot: /home/lars/.local/share/containers/storage
GraphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "false"
ImageStore:
number: 39
RunRoot: /run/user/1000
VolumePath: /home/lars/.local/share/containers/storage/volumes
Package info (e.g. output of rpm -q podman or apt list podman):
podman-1.8.3-1585660943.git9c7410d3.fc31.x86_64
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (17 by maintainers)
@larsks Please try out https://github.com/containers/libpod/pull/5696