podman: Podman creates images that cannot be removed
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
While creating a minimal test case for #3303, I managed to create images that I was unable to remove, even using -f.
Steps to reproduce the issue:
-
Create the Dockerfile
$ echo 'FROM scratch LABEL org.opencontainers.image.authors="<somefolks@example.org>" LABEL org.opencontainers.image.created=2019-06-11T19:03:37Z LABEL org.opencontainers.image.description="This is a test image" LABEL org.opencontainers.image.title=test LABEL org.opencontainers.image.vendor="Example.org" LABEL org.opencontainers.image.version=1' > Dockerfile -
Build the image
$ podman build . STEP 1: FROM scratch STEP 2: LABEL org.opencontainers.image.authors="<somefolks@example.org>" --> 4ebea5977ec0993c77b4a614225076640a00883b72bee1b9e16aa1f7bba35d45 STEP 3: LABEL org.opencontainers.image.created=2019-06-11T19:03:37Z --> 93f759f779d94830bf362b9c884346bf5a34f835fb50e3e717e7adbbf7f1afd7 STEP 4: LABEL org.opencontainers.image.description="This is a test image" --> 2574ed1a96155670e8a139a39011dd5fc07f931d4cd235aebed0f50b1fa7314c STEP 5: LABEL org.opencontainers.image.title=test --> 619b496ce10a0f32051114a0feaabc33c59d1fafd66b517fca122ed8a214d486 STEP 6: LABEL org.opencontainers.image.vendor="Example.org" --> 7aed0f33d0ad9f9b8c018fabb3e9470e0cc5101e5389a62186e40e43bf6500a4 STEP 7: LABEL org.opencontainers.image.version=1 STEP 8: COMMIT --> f881d3aec74db46b890745b89169333c5628bd588db5c5d698ab9ddc076a172e -
Try to delete any of the built images
$ podman image ls ERRO[0000] error checking if image is a parent "4ebea5977ec0993c77b4a614225076640a00883b72bee1b9e16aa1f7bba35d45": layer not known ERRO[0000] error checking if image is a parent "93f759f779d94830bf362b9c884346bf5a34f835fb50e3e717e7adbbf7f1afd7": layer not known ERRO[0000] error checking if image is a parent "2574ed1a96155670e8a139a39011dd5fc07f931d4cd235aebed0f50b1fa7314c": layer not known ERRO[0000] error checking if image is a parent "619b496ce10a0f32051114a0feaabc33c59d1fafd66b517fca122ed8a214d486": layer not known ERRO[0000] error checking if image is a parent "7aed0f33d0ad9f9b8c018fabb3e9470e0cc5101e5389a62186e40e43bf6500a4": layer not known ERRO[0000] error checking if image is a parent "f881d3aec74db46b890745b89169333c5628bd588db5c5d698ab9ddc076a172e": layer not known REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> f881d3aec74d 42 seconds ago 1.85 kB <none> <none> 7aed0f33d0ad 43 seconds ago 1.68 kB <none> <none> 619b496ce10a 44 seconds ago 1.48 kB <none> <none> 2574ed1a9615 45 seconds ago 1.3 kB <none> <none> 93f759f779d9 46 seconds ago 1.07 kB <none> <none> 4ebea5977ec0 48 seconds ago 858 B $ podman rmi -f $(podman images -q) ERRO[0000] error checking if image is a parent "4ebea5977ec0993c77b4a614225076640a00883b72bee1b9e16aa1f7bba35d45": layer not known ERRO[0000] error checking if image is a parent "93f759f779d94830bf362b9c884346bf5a34f835fb50e3e717e7adbbf7f1afd7": layer not known ERRO[0000] error checking if image is a parent "2574ed1a96155670e8a139a39011dd5fc07f931d4cd235aebed0f50b1fa7314c": layer not known ERRO[0000] error checking if image is a parent "619b496ce10a0f32051114a0feaabc33c59d1fafd66b517fca122ed8a214d486": layer not known ERRO[0000] error checking if image is a parent "7aed0f33d0ad9f9b8c018fabb3e9470e0cc5101e5389a62186e40e43bf6500a4": layer not known ERRO[0000] error checking if image is a parent "f881d3aec74db46b890745b89169333c5628bd588db5c5d698ab9ddc076a172e": layer not known layer not known layer not known layer not known layer not known layer not known Error: layer not known $ podman image ls ERRO[0000] error checking if image is a parent "4ebea5977ec0993c77b4a614225076640a00883b72bee1b9e16aa1f7bba35d45": layer not known ERRO[0000] error checking if image is a parent "93f759f779d94830bf362b9c884346bf5a34f835fb50e3e717e7adbbf7f1afd7": layer not known ERRO[0000] error checking if image is a parent "2574ed1a96155670e8a139a39011dd5fc07f931d4cd235aebed0f50b1fa7314c": layer not known ERRO[0000] error checking if image is a parent "619b496ce10a0f32051114a0feaabc33c59d1fafd66b517fca122ed8a214d486": layer not known ERRO[0000] error checking if image is a parent "7aed0f33d0ad9f9b8c018fabb3e9470e0cc5101e5389a62186e40e43bf6500a4": layer not known ERRO[0000] error checking if image is a parent "f881d3aec74db46b890745b89169333c5628bd588db5c5d698ab9ddc076a172e": layer not known REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> f881d3aec74d 8 minutes ago 1.85 kB <none> <none> 7aed0f33d0ad 8 minutes ago 1.68 kB <none> <none> 619b496ce10a 8 minutes ago 1.48 kB <none> <none> 2574ed1a9615 8 minutes ago 1.3 kB <none> <none> 93f759f779d9 8 minutes ago 1.07 kB <none> <none> 4ebea5977ec0 8 minutes ago 858 B
Describe the results you received:
Multiple images were created and I was unable to delete any of them.
Describe the results you expected:
I expected only one image to be created. I expected to be able to delete the created images.
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
Version: 1.4.0
RemoteAPI Version: 1
Go Version: go1.10.4
OS/Arch: linux/amd64
Output of podman info --debug:
debug:
compiler: gc
git commit: ""
go version: go1.10.4
podman version: 1.4.0
host:
BuildahVersion: 1.8.3
Conmon:
package: 'conmon: /usr/libexec/crio/conmon'
path: /usr/libexec/crio/conmon
version: 'conmon version 0.2.0, commit: '
Distribution:
distribution: ubuntu
version: "18.04"
MemFree: 7144542208
MemTotal: 16759091200
OCIRuntime:
package: 'cri-o-runc: /usr/bin/runc'
path: /usr/bin/runc
version: 'runc version spec: 1.0.1-dev'
SwapFree: 8171274240
SwapTotal: 8189374464
arch: amd64
cpus: 8
hostname: workstation
kernel: 4.18.0-21-generic
os: linux
rootless: true
uptime: 95h 2m 39.19s (Approximately 3.96 days)
registries:
blocked: null
insecure: null
search:
- docker.io
store:
ConfigFile: /home/user/.config/containers/storage.conf
ContainerStore:
number: 0
GraphDriverName: vfs
GraphOptions: null
GraphRoot: /home/user/.local/share/containers/storage
GraphStatus: {}
ImageStore:
number: 6
RunRoot: /tmp/1000
VolumePath: /home/user/.local/share/containers/storage/volumes
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical machine running Ubuntu 18.04.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (17 by maintainers)
Interesting:
podman rmi --all --forceonly catches one of the errors, I see a lot more onpodman images