You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here is a difference in podman docker emulation api.
In the crun config, swappiness is unset, which means this value can be return to null in podman inspect.
Also, on system with cgoupv2 changing swappiness does not make any sense, so it should be unset and give a null.
Steps to reproduce the issue
Steps to reproduce the issue
create any containers with docker then inspect it
create any containers with podman then inspect it
compare the dirrerence
Describe the results you received
podman inspect gives MemorySwappiness to 0 instead of null .
Describe the results you expected
this value should be null like docker inspect
podman info output
host:
arch: amd64buildahVersion: 1.37.2cgroupControllers:
- cpuset
- cpu
- io
- memory
- hugetlb
- pids
- rdma
- misccgroupManager: systemdcgroupVersion: v2conmon:
package: conmon-2.1.10-1.fc40.x86_64path: /usr/bin/conmonversion: 'conmon version 2.1.10, commit: 'cpuUtilization:
idlePercent: 97.31systemPercent: 0.86userPercent: 1.82cpus: 32databaseBackend: boltdbdistribution:
distribution: fedoraversion: "40"eventLogger: journaldfreeLocks: 2046hostname: gzz-desktopidMappings:
gidmap: nulluidmap: nullkernel: 6.10.6-200.fc40.x86_64linkmode: dynamiclogDriver: journaldmemFree: 40367509504memTotal: 66913804288networkBackend: netavarknetworkBackendInfo:
backend: netavarkdns:
package: aardvark-dns-1.12.1-1.fc40.x86_64path: /usr/libexec/podman/aardvark-dnsversion: aardvark-dns 1.12.1package: netavark-1.12.1-1.fc40.x86_64path: /usr/libexec/podman/netavarkversion: netavark 1.12.1ociRuntime:
name: crunpackage: crun-1.15-1.fc40.x86_64path: /usr/bin/crunversion: |- crun version 1.15 commit: e6eacaf4034e84185fd8780ac9262bbf57082278 rundir: /run/crun spec: 1.0.0 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJLos: linuxpasta:
executable: /usr/bin/pastapackage: passt-0^20240821.g1d6142f-1.fc40.x86_64version: | pasta 0^20240821.g1d6142f-1.fc40.x86_64 Copyright Red Hat GNU General Public License, version 2 or later <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.remoteSocket:
exists: truepath: /run/podman/podman.sockrootlessNetworkCmd: pastasecurity:
apparmorEnabled: falsecapabilities: 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_CHROOTrootless: falseseccompEnabled: trueseccompProfilePath: /usr/share/containers/seccomp.jsonselinuxEnabled: falseserviceIsRemote: trueslirp4netns:
executable: /usr/bin/slirp4netnspackage: slirp4netns-1.2.2-2.fc40.x86_64version: |- slirp4netns version 1.2.2 commit: 0ee2d87523e906518d34a6b423271e4826f71faf libslirp: 4.7.0 SLIRP_CONFIG_VERSION_MAX: 4 libseccomp: 2.5.5swapFree: 8589930496swapTotal: 8589930496uptime: 0h 22m 30.00svariant: ""plugins:
authorization: nulllog:
- k8s-file
- none
- passthrough
- journaldnetwork:
- bridge
- macvlan
- ipvlanvolume:
- localregistries:
store:
configFile: /usr/share/containers/storage.confcontainerStore:
number: 2paused: 0running: 2stopped: 0graphDriverName: overlaygraphOptions:
overlay.imagestore: /usr/lib/containers/storageoverlay.mountopt: nodev,metacopy=ongraphRoot: /var/lib/containers/storagegraphRootAllocated: 1023709442048graphRootUsed: 37784383488graphStatus:
Backing Filesystem: xfsNative Overlay Diff: "false"Supports d_type: "true"Supports shifting: "true"Supports volatile: "true"Using metacopy: "true"imageCopyTmpDir: /var/tmpimageStore:
number: 31runRoot: /run/containers/storagetransientStore: falsevolumePath: /var/lib/containers/storage/volumesversion:
APIVersion: 5.2.2Built: 1724198400BuiltTime: Wed Aug 21 08:00:00 2024GitCommit: ""GoVersion: go1.22.6Os: linuxOsArch: linux/amd64Version: 5.2.2
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
after checking difference between docker inspect and podman inspect I found there is more fields that docker gives null but podman gives empty value (0,empty array,etc.)
The text was updated successfully, but these errors were encountered:
Tagging as 6.0 as this could be considered a breaking change to folks that rely on the current format of podman inspect. Still something we want to fix but will have to wait for our next breaking change release.
Well for podman inspect yes, but the first line talk about the docker API and links to watchtower which uses the docker API AFAIK so we can and should certainly fix it there to match docker
Issue Description
here is a difference in podman docker emulation api.
In the crun config, swappiness is unset, which means this value can be return to null in
podman inspect
.Also, on system with cgoupv2 changing swappiness does not make any sense, so it should be unset and give a null.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
podman inspect gives MemorySwappiness to 0 instead of
null
.Describe the results you expected
this value should be null like docker inspect
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
after checking difference between
docker inspect
andpodman inspect
I found there is more fields that docker gives null but podman gives empty value (0,empty array,etc.)The text was updated successfully, but these errors were encountered: