Skip to content

cannot remove images on MacOS #23045

@jianzhangbjz

Description

@jianzhangbjz

Issue Description

Cannot empty the space.

jiazha-mac:~ jiazha$ podman system prune -a
WARNING! This command removes:
	- all stopped containers
	- all networks not used by at least one container
	- all images without at least one container associated with them
	- all build cache

Are you sure you want to continue? [y/N] y
Error: 128 errors occurred:
	* open /var/home/core/.local/share/containers/storage/overlay-images/.tmp-images.json2632288465: no space left on device
	* open /var/home/core/.local/share/containers/storage/overlay-images/.tmp-images.json2123817899: no space left on device
	* open /var/home/core/.local/share/containers/storage/overlay-images/.tmp-images.json1495409303: no space left on device
	* open /var/home/core/.local/share/containers/storage/overlay-images/.tmp-images.json4215706309: no space left on device
	* ...

Steps to reproduce the issue

Steps to reproduce the issue
1.

jiazha-mac:~ jiazha$ podman build -f catalog.Dockerfile -t quay.io/olmqe/nginx-index:bug31645 .
Error: mkdir /var/tmp/libpod_builder3138920961: no space left on device
jiazha-mac:~ jiazha$ podman images 
REPOSITORY                                       TAG                                IMAGE ID      CREATED      SIZE
registry.redhat.io/redhat/redhat-operator-index  v4.16                              725ef7898c91  5 days ago   1.86 GB
<none>                                           <none>                             353830b4d40e  3 weeks ago  545 MB
<none>                                           <none>                             15457c8fe287  3 weeks ago  2.98 GB
quay.io/openshifttest/operator-framework-olm     cert5-rotation-rhel9               0dc376d40d53  3 weeks ago  1.94 kB
quay.io/openshifttest/operator-framework-olm     cert-rotation-rhel9                0dc376d40d53  3 weeks ago  1.94 kB
<none>                                           <none>                             d9a09b58e65a  3 weeks ago  524 MB
<none>                                           <none>                             933bb81719fc  3 weeks ago  3.07 GB
<none>                                           <none>                             18d5f115912d  3 weeks ago  545 MB
<none>                                           <none>                             6e3323203077  3 weeks ago  3.14 GB
quay.io/openshifttest/operator-framework-olm     cert6-rotation-rhel9               784cd33a21a5  3 weeks ago  515 MB
<none>                                           <none>                             e94c86fbd756  3 weeks ago  3.06 GB
<none>                                           <none>                             2cf2fc4591a8  3 weeks ago  822 MB
<none>                                           <none>                             ceed43eedfd9  3 weeks ago  4.74 GB
quay.io/openshifttest/operator-framework-olm     cert3-rotation-rhel9               a0f5554f7b1d  3 weeks ago  605 B
registry.ci.openshift.org/ocp/builder            rhel-9-golang-1.21-openshift-4.16  36b1ccb8e645  3 weeks ago  2.49 GB
registry.ci.openshift.org/ocp/4.16               base-rhel9                         45f7701f7772  3 weeks ago  400 MB
docker.io/library/golang                         1.21                               b76c4bf6405f  6 weeks ago  779 MB
registry.access.redhat.com/ubi9/ubi-minimal      latest                             49b88100b913  6 weeks ago  98.4 MB
jiazha-mac:~ jiazha$ podman rmi registry.redhat.io/redhat/redhat-operator-index:v4.16
Error: open /var/home/core/.local/share/containers/storage/overlay-images/.tmp-images.json428717241: no space left on device

Describe the results you received

There is no /var/home/ folder, I'm unsure why it tried to open it.

jiazha-mac:~ jiazha$ podman rmi registry.redhat.io/redhat/redhat-operator-index:v4.16
Error: open /var/home/core/.local/share/containers/storage/overlay-images/.tmp-images.json428717241: no space left on device
jiazha-mac:~ jiazha$ podman rmi 725ef7898c91
Error: 725ef7898c91: image not known

Describe the results you expected

I can remove those images successfully.

podman info output

If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.

jiazha-mac:~ jiazha$ podman version
Client:       Podman Engine
Version:      5.0.0
API Version:  5.0.0
Go Version:   go1.22.1
Git Commit:   e71ec6f1d94d2d97fb3afe08aae0d8adaf8bddf0
Built:        Wed Mar 20 01:29:05 2024
OS/Arch:      darwin/arm64

Server:       Podman Engine
Version:      5.0.3
API Version:  5.0.3
Go Version:   go1.22.2
Built:        Fri May 10 08:00:00 2024
OS/Arch:      linux/arm64

jiazha-mac:~ jiazha$ podman info
host:
  arch: arm64
  buildahVersion: 1.35.4
  cgroupControllers:
  - cpu
  - io
  - memory
  - pids
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon-2.1.10-1.fc40.aarch64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.10, commit: '
  cpuUtilization:
    idlePercent: 99.85
    systemPercent: 0.04
    userPercent: 0.11
  cpus: 5
  databaseBackend: sqlite
  distribution:
    distribution: fedora
    variant: coreos
    version: "40"
  eventLogger: journald
  freeLocks: 2048
  hostname: localhost.localdomain
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 1000000
    uidmap:
    - container_id: 0
      host_id: 501
      size: 1
    - container_id: 1
      host_id: 100000
      size: 1000000
  kernel: 6.8.8-300.fc40.aarch64
  linkmode: dynamic
  logDriver: journald
  memFree: 59138048
  memTotal: 2045304832
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: aardvark-dns-1.10.0-1.fc40.aarch64
      path: /usr/libexec/podman/aardvark-dns
      version: aardvark-dns 1.10.0
    package: netavark-1.10.3-3.fc40.aarch64
    path: /usr/libexec/podman/netavark
    version: netavark 1.10.3
  ociRuntime:
    name: crun
    package: crun-1.14.4-1.fc40.aarch64
    path: /usr/bin/crun
    version: |-
      crun version 1.14.4
      commit: a220ca661ce078f2c37b38c92e66cf66c012d9c1
      rundir: /run/user/501/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^20240426.gd03c4e2-1.fc40.aarch64
    version: |
      pasta 0^20240426.gd03c4e2-1.fc40.aarch64-pasta
      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: true
    path: /run/user/501/podman/podman.sock
  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: true
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.2.2-2.fc40.aarch64
    version: |-
      slirp4netns version 1.2.2
      commit: 0ee2d87523e906518d34a6b423271e4826f71faf
      libslirp: 4.7.0
      SLIRP_CONFIG_VERSION_MAX: 4
      libseccomp: 2.5.3
  swapFree: 0
  swapTotal: 0
  uptime: 531h 36m 24.00s (Approximately 22.12 days)
  variant: v8
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - docker.io
store:
  configFile: /var/home/core/.config/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /var/home/core/.local/share/containers/storage
  graphRootAllocated: 106769133568
  graphRootUsed: 106769104896
  graphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 128
  runRoot: /run/user/501/containers
  transientStore: false
  volumePath: /var/home/core/.local/share/containers/storage/volumes
version:
  APIVersion: 5.0.3
  Built: 1715299200
  BuiltTime: Fri May 10 08:00:00 2024
  GitCommit: ""
  GoVersion: go1.22.2
  Os: linux
  OsArch: linux/arm64
  Version: 5.0.3
jiazha-mac:~ jiazha$ uname -a 
Darwin jiazha-mac 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64

Podman in a container

No

Privileged Or Rootless

None

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.macosMacOS (OSX) relatedremoteProblem is in podman-remote

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions