Closed shaicoleman closed 4 years ago
I am able to reproduce this issue, will look into it.
/assign
This issue is already fixed with upstream code.
$ sudo ./bin/podman inspect f122ad694c04 -f {{.Config.Labels}}
map[maintainer:NGINX Docker Maintainers <docker-maint@nginx.com> mylabel:]
Shall be available with next release.
Closing.
Should be fixed in podman 1.6
This seems to have regressed again, at least on 1.8.0, running a container with just a key for the label doesn't add that label.l
podman run -p 9000:9000 -l minio_fetcher --env MINIO_ACCESS_KEY=... --env MINIO_SECRET_KEY=... --env MINIO_DOMAIN=localhost --rm --detach minio/minio:edge server /home/shared
"Labels": {
"maintainer": "MinIO Inc <dev@min.io>"
},
debug:
compiler: gc
git commit: ""
go version: go1.13.6
podman version: 1.8.0
host:
BuildahVersion: 1.13.1
CgroupVersion: v2
Conmon:
package: conmon-2.0.10-2.fc31.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.0.10, commit: 6b526d9888abb86b9e7de7dfdeec0da98ad32ee0'
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: 48620081152
MemTotal: 67103920128
OCIRuntime:
name: crun
package: crun-0.12.1-1.fc31.x86_64
path: /usr/bin/crun
version: |-
crun version 0.12.1
commit: df5f2b2369b3d9f36d175e1183b26e5cee55dd0a
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
SwapFree: 33676062720
SwapTotal: 33676062720
arch: amd64
cpus: 20
eventlogger: journald
hostname: jake-nix
kernel: 5.4.18-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: 6h 38m 40.88s (Approximately 0.25 days)
registries:
search:
- docker.io
- registry.fedoraproject.org
- registry.access.redhat.com
- registry.centos.org
- quay.io
store:
ConfigFile: /home/jake/.config/containers/storage.conf
ContainerStore:
number: 105
GraphDriverName: overlay
GraphOptions:
overlay.mount_program:
Executable: /usr/bin/fuse-overlayfs
Package: fuse-overlayfs-0.7.5-2.fc31.x86_64
Version: |-
fusermount3 version: 3.6.2
fuse-overlayfs: version 0.7.5
FUSE library version 3.6.2
using FUSE kernel interface version 7.29
GraphRoot: /home/jake/.local/share/containers/storage
GraphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "false"
ImageStore:
number: 63
RunRoot: /run/user/1000
VolumePath: /home/jake/.local/share/containers/storage/volumes
Confirmed, looking into it
Reopening, given that this is happening again
Looks like our label parsing is rather entangled with environment parsing, which I think is the cause.
Wow, thanks for the quick response and fix!
/kind bug
Description
Podman 1.5.0 seems to ignore labels that are key only
Same thing with Docker:
Seems like a regression, because it seems to work with an older version
Output of
sudo podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):